On Wed, Oct 01, 2003 at 01:03:08PM +1200, Warwick & Ian wrote: > I maybe being thick and / or lazy but what is the easiest command line > equivalent to DOS: > > REN *.txt *.old
Nothing that 'simple'...
you want somthing like:
for i in *.txt;do mv $i $(echo $i | sed -e 's/txt$/old/');done
Mike.
--
Mike Beattie <[EMAIL PROTECTED]> ZL4TXK, IRLP Node 6184
yip yip yip yip yip yip yap yap yip *BANG* NO TERRIER
