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


Click here to return to the 'A command to change a set of files' extension' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command to change a set of files' extension
Authored by: gshenaut on Mar 16, '05 02:14:20AM
Just one more--use find's -exec flag to do the move, something like this:
find . -name '*.jpg' -exec sh -c 'mv "{}" `dirname "{}"`/`basename "{}" jpg`.rtf' ';'
I didn't test this, but it should work.

Greg Shenaut

[ Reply to This | # ]