[ILUG] Strip first three characters from filename

Pádraig Brady P at draigBrady.com
Mon Aug 11 13:54:40 IST 2008


Colm Buckley wrote:
> On Sun, Aug 10, 2008 at 11:25 AM, john Moylan <john at nuatech.net> wrote:
> 
>> for i in `ls *.mp3`; do cut  -d "_" -f2-; done
> 
> 
> Just a note on the above; the "ls" is completely superfluous.

.. and also problematic if the filenames contain spaces.

Pádraig.



More information about the ILUG mailing list