Re: rename file on cygwin

2007-11-02 Thread Brian Dessent
Muhammad Najmi Ahmad Zabidi wrote: > $ ls *.mp3* > agama dan aqidah [EMAIL PROTECTED] > -h2cpUXJWMQf1Bj04= > > Which I want to rename to this: > $ ls *.mp3*|awk -F"@*" {'print $1'} > > agama dan aqidah b.mp3 > > I tried to use "for" loop but since the old name contains spaces, I've > to deal wi

rename file on cygwin

2007-11-02 Thread Muhammad Najmi Ahmad Zabidi
Hi all. I have this kind of file name: $ ls *.mp3* agama dan aqidah [EMAIL PROTECTED] -h2cpUXJWMQf1Bj04= Which I want to rename to this: $ ls *.mp3*|awk -F"@*" {'print $1'} agama dan aqidah b.mp3 I tried to use "for" loop but since the old name contains spaces, I've to deal with the spaces a