Re: Stupid unix
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 23 Jul 1998, Jack A Walker wrote:
> Please excuse this lame non Debian specific question. Is there a simple
> way to change all filenames in a directory so they are lowercase?
I would do this: ls | awk '{ system("mv " $0 " " tolower($0)) }'
(But just because I love awk, a perl hacker would surely give you a
different solution, and a Bourne-shell hacker yet another one, etc. :-).
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
iQCVAgUBNbeC2iqK7IlOjMLFAQEVkQP+MB25ZHfhADpbs2CA0u8FcOIKthITMC1n
0yLSFDt8UKxiK00HOVBXbiyS8H/C/BwCElIBrM++gSIiiKJfi+ca+xi0J7hAY6+G
pePuiE0ijKLdI84oTkrB1Aa8p+kXc6aFAldqDsN6pSx0WmT62hRBffHbAJ+tlEB3
uFnc0K6uRA8=
=SQpU
-----END PGP SIGNATURE-----
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to:
- Follow-Ups:
- Re: Stupid unix
- From: Martin Bialasinski <martin@internet-treff.uni-koeln.de>