home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10733 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.1 KB

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