home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3733 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.1 KB

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