home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2255 < prev    next >
Text File  |  1990-12-28  |  838b  |  28 lines

  1. Newsgroups: alt.sources
  2. Subject: Re: Neat utility to convert uppercase filenames
  3. Message-ID: <1990Dec11.150025.2119@mdivax1.uucp>
  4. Date: 11 Dec 90 15:00:25 GMT
  5.  
  6. In article <2797@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
  7.  
  8. >I think all the programs posted so far have the bug that if you have
  9. >files called "x" and "X", they will delete one of them.  Here's mine.
  10. >
  11. > (shell script deleted)
  12.  
  13. Yours is similar to the one I was using, until I saw this one posted:
  14.  
  15. for file in $*
  16. do
  17.     mv -i $file `echo $file | tr A-Z a-z`
  18. done
  19.  
  20. The mv program typically refuses to overwrite an existing file and, having
  21. failed, leaves the original file in place with its original name.
  22.  
  23. This is free (that's what I paid for it) and comes with a moneyback
  24. guarantee.  Your mileage may vary.
  25.  
  26. -- 
  27. mitchell@mdi.com (Bill Mitchell)
  28.