home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!usc!wupost!darwin.sura.net!sgiblab!svcs1!slix
- From: slix@svcs1.UUCP (Bill Miller)
- Newsgroups: comp.unix.questions
- Subject: Re: need script to rename uppercase filenames
- Message-ID: <703@svcs1.UUCP>
- Date: 4 Sep 92 23:24:19 GMT
- References: <699@svcs1.UUCP> <1992Sep3.083107.11920@athena.mit.edu> <1992Sep3.120607.25089@umbc3.umbc.edu>
- Organization: Silicon Valley Computer Society, Sunnyvale, CA
- Lines: 20
-
- In article <1992Sep3.120607.25089@umbc3.umbc.edu>, rouben@math13.math.umbc.edu (Rouben Rostamian) writes:
-
- > I would suggest the quicker script:
- >
- > #!/bin/sh
- > for file in *[A-Z]*
- > do
- > mv $file `echo $file | tr '[A-Z]' '[a-z]'`
- > done
- >
- > This script changes all files names containing an uppercase letter
- > in the current directory to lowercase. I would not strip the \015s
- > so casually without knowing the contents of the files.
-
- First of all, when I try that, it just stops, and starts echoing every
- thing I type since I first run it to a 'typescript' file which eventually
- grows fairly large. I can't kill the pid for the script - if I do that
- the system hangs.
-
- FWIW I use 386BSD and csh, but nothing so far has worked as intended.
-