KLUG Weekly Meeting Notes

Tuesday, August 16, 2005


Command Line Interface (CLI): find and xarg

Presented by Bruce Smith

See the KLUG Past Presentations page:

Bruce introduced two of the most powerful command line
tools available on the UNIX and LINUX platforms: find
and xargs. To quote Bruce, "With these tools you can build
powerful and 'intelligent' scripts to automate a variety

of tasks. Batch files weep in shame at the mere mention of
"find" and "xargs"."

Switching between the Firefox browser with his .html notes
and the terminal window, Bruce detailed command usage and

demonstrated how they worked. There were quite a few
arguments that he showed us that will deliver a plethora of
results. Bruce took questions on the fly and took time to
explain how to get the desired output. Several of his usage
tips brought forth exclamations of amazement from the

General command descriptions from the GNU man pages.

find - search for files in a directory hierarchy

xargs - build and execute command lines from standard input

NOTE: Always read the man page for find and xargs on the
system you are going to run them on. There are many variations
and the commands are evolving. Test using ".exec echo" before
invoking real commands, especially destructive commands like
removing files!


To see web-based GNU manual pages in .html

Superman: find

Superman: xargs

(15 Linux Enthusiasts Attending)

Very informative blog. Please check out my cd linux live blog.
Post a Comment

<< Home


March 2005   April 2005   May 2005   June 2005   July 2005   August 2005   September 2005   October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006  

This page is powered by Blogger. Isn't yours?