home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / misc / 21782 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.5 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!news.cs.tut.fi!tut!ttn
  2. From: ttn@cs.tut.fi (Tero Nieminen)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Re: adding file suffix
  5. Date: 9 Nov 92 08:34:50
  6. Organization: Tampere Univ. of Technology, Finland.
  7. Lines: 26
  8. Distribution: world
  9. Message-ID: <TTN.92Nov9083450@kivikkorastas.cs.tut.fi>
  10. References: <721285254.AA00000@blkcat.UUCP>
  11. NNTP-Posting-Host: kivikkorastas.cs.tut.fi
  12. In-reply-to: David.Gursky@p394.f70.n109.z1.fidonet.org's message of Sun, 08 Nov 1992 22:53:26 -0500
  13.  
  14. In article <721285254.AA00000@blkcat.UUCP> David.Gursky@p394.f70.n109.z1.fidonet.org (David Gursky) writes:
  15.  
  16.      HF> I just transfered about 200 Mac tiff files from a Mac HD to my NeXT
  17.      HF> HD. Of course they show up just like text files which I just add the
  18.      HF> .tiff suffix and everthing is fine. But I don't want to change them
  19.      HF> all by hand so the QUESTION is;  is there a neat UNIX thing that will
  20.      HF> allow me to batch them all with the .tiff suffix ??
  21.  
  22.    How about moving them all into a single sub-directory, opening a terminal shell,
  23.    moving to the aforementioned directory, and using a command to the effect of "mv
  24.    * *.tiff"
  25.  
  26. In case someone didn't know how to do that.
  27.  
  28. First go to the directory where the files you want to rename are using
  29. the cd command. Then write the following three lines ("mynext %1" is the
  30. prompt, like the "?" in the two other lines): 
  31.  
  32. mynext %1 foreach f (*)
  33. ? mv $f $f.tiff
  34. ? end
  35. mynext %2 
  36.  
  37. --
  38.          Tero Nieminen                      DANGER!
  39.          ttn@cs.tut.fi                   Computer Bytes!
  40.