With the example echo script only returns: (Despite the fact that there are many .jpgs) $find . -name '*.jpg' | xargs ./Suggestion.sh ./test1.jpg $ Is this how it is meant to work?
I was reading the man page for xargs but didnt understand most of it: I get the impression that xargs should do: ./Suggestion.sh <find result1> ./Suggestion.sh <find result2> etc etc? .... Thats what it would probably have to do since image magick's convert seems to refuse to convert multiple files on one command line. Further Ideas? Thanks a Mil! TiM >--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 ---------------------------------- E-Mail: Timothy Hospedales <[EMAIL PROTECTED]> Date: 22-Apr-99 Time: 23:29:54 This message was sent by XFMail Powered by Debian GNU/Linux. ----------------------------------