🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.misc
Article #3241

Re: adding file suffix

#3241
From: Drew Davidson
Date: Sun, 08 Nov 1992 21:50
28 lines
1578 bytes
In article <1992Nov7.175558.3483@macadam.com> hfp@macadam.com (Hal Fox-Palmer)  
writes:
> I just transfered about 200 Mac tiff files from a Mac HD to my NeXT HD.
> Of course they show up just like text files which I just add the .tiff  
> suffix and everthing is fine. But I don't want to change them all by hand  
> so the QUESTION is;  is there a neat UNIX thing that will allow me to  
> batch them all with the .tiff suffix ??
> 
> THANKS
> 
> Hal Fox-Palmer    MACadam Computers
> hfp@macadam.com

Put them all in a single directory, open Terminal (you should get csh by  
default).  Type:

foreach file (*)
    mv $file $file.tiff
end

and voila!  your files are now TIFF.
--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | "Never ask a programmer if he'll have     |
|         Software Guy           |  another cup of coffee because it's       |
| First National Bank of Chicago |  nobody's damn business how much he's     |
|     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
+--------------------------------+-------------------------------------------+
Technical Details
Message-ID: <1992Nov8.215031.5855@fnbc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!juliet!news
References: <1992Nov7.175558.3483@macadam.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!juliet!news
From: drew@fnbc.com (Drew Davidson)
Subject: Re: adding file suffix
Message-ID: <1992Nov8.215031.5855@fnbc.com>
Sender: news@fnbc.com
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
References: <1992Nov7.175558.3483@macadam.com>
Date: Sun, 8 Nov 92 21:50:31 GMT
Lines: 28