[plug] Parenthesis in shell script

Garry garbuck at westnet.com.au
Sun Apr 22 09:59:01 WST 2012


I've got a shell script which evens out the volumes of mp3s, and should 
remove any with a left bracket in the filename. This is to remove 
duplicates, they are named filename(2).mp3 etc.

mp3gain -k -r -v mp3pods/* && du -h mp3pods/ && echo "Removing files 
with brackets - i.e. duplicates" && rm -v mp3pods/*'('*.mp3

I've tried it using \ to escape it, single ' either side, double " 
either side.. No good.

Can anyone enlighten me on the incantations indicated please?

Thanks

Garry


More information about the plug mailing list