home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!sgiblab!svcs1!slix
- From: slix@svcs1.UUCP (Bill Miller)
- Newsgroups: comp.unix.questions
- Subject: need script to rename uppercase filenames
- Keywords: script,tar,msdos
- Message-ID: <699@svcs1.UUCP>
- Date: 2 Sep 92 22:26:57 GMT
- Organization: Silicon Valley Computer Society, Sunnyvale, CA
- Lines: 19
-
- Hi, everyone.
-
- I'm fairly new to unix, and I need a script or procedure to do the following:
-
- I have some source code in DOS (many separate files) that I tarred under
- DOS and untarred under 386BSD. The big problem is that all the files
- came through in UPPERCASE and I need a script to mv (rename) them all
- to lowercase quickly.
-
- Since they're in DOS text format, I realize I also need to strip the
- extra carriage returns on each line. I've been successful in doing this
- with:
-
- cat (file) | tr -d '\015' > (newfile)
-
- It would be nice to combine both of these so that I could rename the
- files to uppercase and strip the extra newlines all in one fell swoop
- instead of doing it one file at a time.
-
-