🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: adding file suffix

#3245
From: Charles William Swiger
Date: Mon, 09 Nov 1992 00:58
21 lines
1155 bytes
Change to the directory that contains the files.

Try:

foreach f ( * )    <type return>
mv $f ${f:r}.tiff  <type return>
end                <type return>

If the files have a common extension (say .mac), you can replace the "(
* )" with "( *.mac )" and this will only affect the files with that
extension.

-Chuck



+---------------------------------------------+ 
|  Charles William Swiger -- CMU sucks rocks  | "The television screen is the
|   AMS & normal mail: cs4w+@andrew.cmu.edu   | retina of the mind's eye."
|    NeXTmail: <temporarily out of order>     |           
+---------------------------------------------+            --Videodrome
Technical Details
Message-ID: <oezPSP_00WBOA4CI0a@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!rutgers!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!cs4w+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!rutgers!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!cs4w+
From: cs4w+@andrew.cmu.edu (Charles William Swiger)
Newsgroups: comp.sys.next.misc
Subject: Re: adding file suffix
Message-ID: <oezPSP_00WBOA4CI0a@andrew.cmu.edu>
Date: 9 Nov 92 00:58:03 GMT
Organization: Senior, Chemistry, Carnegie Mellon, Pittsburgh, PA
Lines: 21
In-Reply-To: <1992Nov7.175558.3483@macadam.com>