Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Quoting Globs (was: Re: Batch conversion of a bunch of Illustrator files to SVG files)



Dave M G wrote:

> Recently I learnt how to execute an application on a bunch of files
> using "find". 

Wonderful, wonderful tool. 

> find -name *mp3 -exec mp3gain -r -k {} \;

Be careful with wildcards. With your way, think of what would 
happen when the PWD has one mp3 file in it. Think of what 
would happen when the PWD has several mp3 files in it. 
I'd quote the iname wildcard with single quotes: 

   find . -iname '*.mp3' -exec mp3gain -r -k {} \;



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links