[PLUG] Rename script

Sandy Herring sandy at herring.org
Fri Apr 26 23:01:29 UTC 2002


I guess I should have made it clear that my reply was specifically about
which shells offer parameter substitution.

Sandy

On Fri, 26 Apr 2002, Brian Horan wrote: 
> 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
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
Sandy Herring, RHCE                        o              sandy at herring.org
Peck of Pickled Pisces               __  o               http://herring.org/
UNIX or Web authoring questions?  |\/ o\  o  http://herring.org/finger.html
=>http://herring.org/techie.html  |/\__/     http://herring.org/pub-key.asc
*sh, Perl, C, VBA, PICK Assembler, Data/Basic, PROC & profanity spoken here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20020426/03325525/attachment.asc>


More information about the PLUG mailing list