home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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!
-