Article View: comp.sys.next.misc
Article #3249Re: adding file suffix
From: Tero Nieminen
Date: Mon, 09 Nov 1992 08:34
Date: Mon, 09 Nov 1992 08:34
26 lines
1620 bytes
1620 bytes
In article <721285254.AA00000@blkcat.UUCP> David.Gursky@p394.f70.n109.z1.fidonet.org (David Gursky) writes:
HF> I just transfered about 200 Mac tiff files from a Mac HD to my NeXT
HF> HD. Of course they show up just like text files which I just add the
HF> .tiff suffix and everthing is fine. But I don't want to change them
HF> all by hand so the QUESTION is; is there a neat UNIX thing that will
HF> allow me to batch them all with the .tiff suffix ??
How about moving them all into a single sub-directory, opening a terminal shell,
moving to the aforementioned directory, and using a command to the effect of "mv
* *.tiff"
In case someone didn't know how to do that.
First go to the directory where the files you want to rename are using
the cd command. Then write the following three lines ("mynext %1" is the
prompt, like the "?" in the two other lines):
mynext %1 foreach f (*)
? mv $f $f.tiff
? end
mynext %2
--
Tero Nieminen DANGER!
ttn@cs.tut.fi Computer Bytes!
Technical Details
Message-ID:
<TTN.92Nov9083450@kivikkorastas.cs.tut.fi>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!news.cs.tut.fi!tut!ttnReferences:
<721285254.AA00000@blkcat.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!news.cs.tut.fi!tut!ttn From: ttn@cs.tut.fi (Tero Nieminen) Newsgroups: comp.sys.next.misc Subject: Re: adding file suffix Date: 9 Nov 92 08:34:50 Organization: Tampere Univ. of Technology, Finland. Lines: 26 Distribution: world Message-ID: <TTN.92Nov9083450@kivikkorastas.cs.tut.fi> References: <721285254.AA00000@blkcat.UUCP> NNTP-Posting-Host: kivikkorastas.cs.tut.fi In-reply-to: David.Gursky@p394.f70.n109.z1.fidonet.org's message of Sun, 08 Nov 1992 22:53:26 -0500