home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!almac!tony.dunning
- From: tony.dunning@almac.co.uk (Tony Dunning)
- Newsgroups: comp.unix.shell
- Subject: script for changing file
- Message-ID: <939.835.uupcb@almac.co.uk>
- Date: 14 Dec 92 02:21:00 GMT
- Reply-To: tony.dunning@almac.co.uk (Tony Dunning)
- Organization: Almac BBS Ltd. Scotland. +44 (0)324-665371
- Lines: 24
-
- TO: newman@cptc1.neep.wisc.edu
-
- DN>For example if the directory contained OUT1 OUT2 OUT3 and TEXT
- DN>I could run the script rename OUT run1 and have it return
- DN>OUT1run1 OUT2run1 OUT3run1 TEXT.
-
- Try the following
-
- script name eg scr1 , containing the following
-
- find . -name "*$1*" -exec scr1sub {} \;
-
- where scr1sub would read :
-
- mv $1 $1$2
-
- This would find all files in your directory & down from your directory
-
-
-
- Tonyd
- ---
- . OLX 2.2 . Unable to locate Coffee -- Operator Halted!
-
-