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

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: drew@fnbc.com (Drew Davidson)
  4. Subject: Re: adding file suffix
  5. Message-ID: <1992Nov8.215031.5855@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: drew@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <1992Nov7.175558.3483@macadam.com>
  10. Date: Sun, 8 Nov 92 21:50:31 GMT
  11. Lines: 28
  12.  
  13. In article <1992Nov7.175558.3483@macadam.com> hfp@macadam.com (Hal Fox-Palmer)  
  14. writes:
  15. > I just transfered about 200 Mac tiff files from a Mac HD to my NeXT HD.
  16. > Of course they show up just like text files which I just add the .tiff  
  17. > suffix and everthing is fine. But I don't want to change them all by 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. > THANKS
  21. > Hal Fox-Palmer    MACadam Computers
  22. > hfp@macadam.com
  23.  
  24. Put them all in a single directory, open Terminal (you should get csh by  
  25. default).  Type:
  26.  
  27. foreach file (*)
  28.     mv $file $file.tiff
  29. end
  30.  
  31. and voila!  your files are now TIFF.
  32. --
  33. +--------------------------------+-------------------------------------------+
  34. |        Drew  Davidson          | "Never ask a programmer if he'll have     |
  35. |         Software Guy           |  another cup of coffee because it's       |
  36. | First National Bank of Chicago |  nobody's damn business how much he's     |
  37. |     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
  38. +--------------------------------+-------------------------------------------+
  39.