> > for i in *.txt;do mv $i $(echo $i | sed -e
> 's/txt$/old/');done
> 
> slightly shorter is:
> 
> for i in *.txt ; do mv "$i" "${i%txt}old" ; done

That's still bloody complicated compared to
ren *.txt *.old

Isn't there some way to escape the wildcards in
mv *.txt *.old
so that mv expands it instead of the shell?

For all its power, the unix CLI struggles
to do some things as simply as command.com
it would seem.

Then again, the 'nix shell is kinda neat.
Shame about the simple stuff though.

Yuri

Reply via email to