home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!cats.muh.dec.com!uli
- From: uli@cats.muh.dec.com (OOOO - Open Object-Oriented Ogre)
- Newsgroups: comp.unix.shell
- Subject: Strings & Files in csh
- Message-ID: <1992Sep1.154522.26697@rdg.dec.com>
- Date: 1 Sep 92 15:45:22 GMT
- Sender: news@rdg.dec.com (Mr News)
- Reply-To: uw@decum.enet.dec.com
- Organization: Digital Equipment GmbH Hoerselbergstr.3 D-8000 Muenchen 80 Germany
- Lines: 23
-
-
- Hi,
-
- just to avoid "to re-invent the wheel"(?):
- are there some good example scripts for string/file handling for csh?
- I think of copying files and transforming
- their names at the same time, for example
- foreach ...
- cp <./pub/x1/save/file.txt> <~/save/x1_file>
- end
-
- where <> indicates variable expansion.
- The actual motive for this question should make it a bit more clear:
- e.g. think of README files scattered about in several subdirectories;
- wouldn't it be nice to have them all in one directory
- with meaningful names drawn from the path they belonged to?
- Perhaps it's only a dream....
-
- However, thanks in advance!
-
- uli
- --
- OOOO--Open-Object-Oriented-Ogre
-