home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2237 < prev    next >
Internet Message Format  |  1990-12-28  |  515b

  1. From: kjh@pollux.usc.edu (Kenneth J. Hendrickson)
  2. Newsgroups: alt.sources
  3. Subject: Re: Neat utility to convert uppercase filenames
  4. Message-ID: <28682@usc>
  5. Date: 7 Dec 90 21:29:14 GMT
  6.  
  7. The following Bourne shell script has always worked well for me:
  8.  
  9. for file in *
  10. do
  11.     mv -i $file `echo $file | tr A-Z a-z`
  12. done
  13.  
  14. For Sys V, put square brackets around the tr strings.
  15.  
  16. -- 
  17. favourite oxymorons:   student athlete, military justice, mercy killing
  18. Ken Hendrickson N8DGN/6       kjh@usc.edu      ...!uunet!usc!pollux!kjh
  19.