[PLUG] Rename script
Sandy Herring
sandy at herring.org
Fri Apr 26 22:34:45 UTC 2002
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
--
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/be700151/attachment.asc>
More information about the PLUG
mailing list