On Mon, 2003-10-13 at 09:00, bascule wrote: > basename will remove trailing suffixes: > mv $i $(basename $i .OK) > this removes '.OK' from the end of filenames but nowhere else > > bascule Thank you, I learned something good today.
> On Monday 13 Oct 2003 9:15 am, Brian Parish wrote: > > > for i in *.OK; do mv "$i" `echo $i | tr -d '.OK'`;done; > > > > removes the .OK just fine, but also removes ".", "O" and "K" wherever > > they occur. -- ++++++++++++++++++++++++++++++++++++++++++ Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
