
10 Nov
2011
10 Nov
'11
10:47 p.m.
On 2011-11-11 00:22, David Zuccaro wrote:
On Thu, 2011-11-10 at 13:16 +1100, Trent W. Buck wrote:
export TITLE=${TITLE:-unknown}
Why not: export TITLE=unknown
Because Trent's version lets you explicily set TITLE earlier (e.g. before invoking the script), if you want to override the default of 'unknown.'
find -iname \*.mp3 -maxdepth 1 \ -exec bash -xc 'id3ed -isq "$0"' {} \; \ -exec bash -xc 'id3ed -q -s "$TITLE${0:5:4}" "$0"' {} \; \ -exec bash -xc 'id3ed -isq "$0"' {} \; \ -ls
Why the need for the -ls option?
Only for use as a type of progress indicator to see which file has just been processed. -- Regards, Matthew Cengia