--cut here #!/bin/sh #$1 holds first command line argument #do stuff to $1 here... echo $1 #example --end cut
Put this in a file, then chmod +x that file. Now, invoke this like so: $ find . -name '*.jpg' | xargs myscript.sh Carl
--cut here #!/bin/sh #$1 holds first command line argument #do stuff to $1 here... echo $1 #example --end cut
Put this in a file, then chmod +x that file. Now, invoke this like so: $ find . -name '*.jpg' | xargs myscript.sh Carl