Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Avoiding error messages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoiding error messages
Authored by: JadeNB on Jun 02, '06 03:39:26PM

One way to avoid the errors is to wrap the find statement in a loop which runs through the arguments and tests for existence. That is, one can replace your second line with:

$ for x in `find . -type f`; do if [[ -e ../Originals/$x ]]; then mv ../Originals/$x ~/.Trash/iPhoto-Originals; fi; done

As with your suggestion, you need to be in the relevant directory to do this. There's probably a slicker way to do the testing within find, but I don't know it well enough to know how.



[ Reply to This | # ]