Thanks for the repies so quickly, but a couple of things happen.
When I execute this
find /path/to/files -empty -exec rm -f {}\;
and I put in the /path/to/file I get an error of -exec: no terminating ";" although there is one there.
Also when I put this in a script all by itself and fill in the appropriate areas nothing happens, it just returns to the next line
grep "search_pattern" file_to_search
if [ $? -eq 0 ]
then rm file_to_search
exit 0
fi
Could you please explain the second line.
Quote:
What is moving you from the applescript world into shell programming?
Experimentation and sometimes it takes the Finder forever to do some things. In applescript you have to open applications most of the time to get the work done but with shell scripting and a text delimited file it is amazing how fast it is to use awk and/or sed (I still have not figured all of those out yet) to get the same job done. But I still use applescript most of the time because I have not figured out how to do my work in a shell script, such as taking 10000-11000 pictures and making a copy, cropping the copy to a certain size, making a thumbnail, renaming the thumbnail, apply a watermark to the cropped image, and putting each file into a separate directory, etc. all in a matter of about 8 minutes.