home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / misc / 21771 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!pipex!demon!seer.demon.co.uk!paul
  3. From: paul@seer.demon.co.uk (Paul Lynch)
  4. Subject: Re: adding file suffix
  5. Message-ID: <1992Nov8.222741.759@seer.demon.co.uk>
  6. Sender: paul@seer.demon.co.uk
  7. Organization: P & L Systems
  8. References: <1992Nov7.175558.3483@macadam.com>
  9. Date: Sun, 8 Nov 1992 22:27:41 GMT
  10. Lines: 22
  11.  
  12. In article <1992Nov7.175558.3483@macadam.com> hfp@macadam.com (Hal  
  13. Fox-Palmer) writes:
  14. > I just transfered about 200 Mac tiff files from a Mac HD to my NeXT HD.
  15. > Of course they show up just like text files which I just add the .tiff  
  16. > suffix and everthing is fine. But I don't want to change them all by  
  17. hand  
  18. > so the QUESTION is;  is there a neat UNIX thing that will allow me to  
  19. > batch them all with the .tiff suffix ??
  20.  
  21. foreach file (*)
  22. mv $file $file.tiff
  23. end
  24.  
  25. in a Terminal window.  Change the (*) thing to match all of your files; or  
  26. write a Terminal Service to do it.
  27.  
  28. Paul
  29. -- 
  30. Paul Lynch
  31. P & L Systems                   (NeXTmail) paul@seer.demon.co.uk
  32. Tel: (0494)671501                      paull@cix.compulink.co.uk
  33. Fax: (0494)680228                       76711.451@compuserve.com
  34.