home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / misc / 21859 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!lothario.cica.indiana.edu!tagreen
  3. From: tagreen@lothario.cica.indiana.edu (Todd A Green)
  4. Subject: Re: adding file suffix
  5. Message-ID: <BxIwJH.K8p@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: lothario.cica.indiana.edu
  8. Organization: CICA - Center for Innovative Computer Applications
  9. References: <oezPSP_00WBOA4CI0a@andrew.cmu.edu> <1992Nov10.184750.24693@kakwa.ucs.ualberta.ca>
  10. Date: Tue, 10 Nov 1992 23:14:04 GMT
  11. Lines: 29
  12.  
  13. > Sherwood Botsford writes:
  14. >Charles William Swiger writes
  15. >> mv $f ${f:r}.tiff  <type return>
  16. >
  17. >What does the :r do?
  18.  
  19. From "man csh":
  20.  
  21.     The `:' separating the event specification from the word
  22.      designator can be omitted if the argument selector begins
  23.      with a `^', `$', `*' `-' or `%'.  After the optional word
  24.      designator can be placed a sequence of modifiers, each pre-
  25.      ceded by a `:'.  The following modifiers are defined:
  26.  
  27.           h      Remove a trailing pathname component, leaving the head.
  28.           r      Remove a trailing `.xxx' component, leaving the root name.
  29.           e      Remove all but the extension `.xxx' part.
  30.           s/l/r/ Substitute l for r
  31.           t      Remove all leading pathname components, leaving the tail.
  32.           &      Repeat the previous substitution.
  33.           g      Apply the change globally, prefixing the above, e.g. `g&'.
  34.           p      Print the new command but do not execute it.
  35.           q      Quote the substituted words, preventing further substitutions.
  36.           x      Like q, but break into words at blanks, tabs and newlines.
  37.  
  38. Try reading the man pages before posting,
  39. Todd
  40. --
  41. NeXTmail:  tagreen@cica.indiana.edu
  42.