[NTLUG:Discuss] A quick Bash scripting question

Courtney Grimland cgrimland at yahoo.com
Wed May 8 00:10:21 CDT 2002


Thanks!  I've now added 'basename' to my mental toolbox.


> #!/bin/bash
> 
> for file in *.xpm; do
>  mv $file `basename $file .xpm`_32x32.xpm
> done
> 
> HTH.
> 
> Ry
> -- 
> > chemwonk <chemwonk> wrote:
> >ObMessy: Explaining the hotel charge for "12 year old virgin" to the
> >accountants at the home office.
>  
>  Bill it as "laptop maintenance".
> - Tina Marie




More information about the Discuss mailing list