[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Mon, 9 Jan 2006, Gemma Peter wrote: > cd $DIRECTORY > for I in *.eps; > do > #what you want to do to each file > #for example print its name > echo "$I"; > done; I too would have done it that way, rather than use an if clause. If you dislike the error-message *.eps: No such file or directory that will come up when there are no files to process, use 2>/dev/null Best wishes John -- John Palmer Preston near Weymouth, Dorset, England e-mail: johnp@xxxxxxxxxx (plain text preferred) website: http://www.palmyra.uklinux.net/ -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html