[PLUG] Rename script

Brian Horan bhoran at hexdev.com
Fri Apr 26 23:12:37 UTC 2002


csh and tcsh have a 'foreach' (much like Perl's) for stuff like this...

On Friday 26 April 2002 06:34 pm, you wrote:
> On Thu, 25 Apr 2002, Russell Evans wrote:
> > I know this has been answered, but I was wondering if this works with
> > other shells besides Bash?
> >
> > for i in * ; do mv "$i" ${i##*_} ; done
> >
> >
> > Thank you
> > Russell
>
> sh      Y
> bash    Y
> (pd)ksh Y
> zsh     Y
> csh     N
> tcsh    N
>
> hth,
> Sandy

-- 
Brian Horan
bhoran at hexdev.com




More information about the PLUG mailing list