home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!tymix!tardis!olivea!spool.mu.edu!sdd.hp.com!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.unix.questions
- Subject: Re: need script to rename uppercase filenames
- Keywords: script,tar,msdos
- Message-ID: <1992Sep4.162044.2242@netlabs.com>
- Date: 4 Sep 92 16:20:44 GMT
- References: <699@svcs1.UUCP> <1992Sep03.151245.11128@Celestial.COM>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 14
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <1992Sep03.151245.11128@Celestial.COM> bill@Celestial.COM (Bill Campbell) writes:
- : s/\s+$//; # strip all trailing whitespace including ^M
-
- Unfortunately, that also deletes the ^J. Since the script unlinks the
- DOS file, you've just thrown away information that's not easily
- reconstructable. (In fact, the files won't even be editable unless you
- use GNU emacs.) It would be safer to move the DOS file to a temporary
- subdirectory until you're sure the translation works right.
-
- I don't want to discourage anyone from helping people, but help is not
- what booby traps are generally construed as... :-)
-
- Larry Wall
- lwall@netlabs.com
-