[thelist] bulk rename on Mac
Joel D Canfield
joel at bizba6.com
Tue Nov 23 14:55:00 CST 2010
On Tue, Nov 23, 2010 at 1:44 PM, Hassan Schroeder <
hassan.schroeder at gmail.com> wrote:
> ripple:/tmp$ for arg in *.asp; do mv $arg `echo $arg | sed 's/.asp//'`.php;
> done
>
and from Alex
for i in `ls -1 *.asp` ; do mv $i `echo $i | sed 's/\.asp/.php/g'` ; done
which worked for me, so now I'm just curious, Hassan:
Nomad:~/documents/tips Apple$ ripple:/tmp$ for arg in *.asp; do mv $arg
`echo $arg | sed 's/.asp//'`.php; done
-bash: syntax error near unexpected token `do'
I don't recognise 'ripple'; am I missing something obvious again?
thankies
More information about the thelist
mailing list