home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / editors / 3331 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  858 b 

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!sun-barr!cs.utexas.edu!tamsun.tamu.edu!tamsun.tamu.edu!news
  2. From: pckizer@tamsun.tamu.edu (Philip Kizer)
  3. Newsgroups: comp.editors
  4. Subject: Re: Piping just *1* line [Was: mapping space bar]
  5. Date: 27 Jan 1993 22:41:14 -0600
  6. Organization: Texas A&M University, College Station, TX
  7. Lines: 18
  8. Distribution: inet
  9. Message-ID: <1k7o5aINN1vd@tamsun.tamu.edu>
  10. References: <1993Jan27.214031.3457@bcars6a8.bnr.ca>
  11. NNTP-Posting-Host: tamsun.tamu.edu
  12.  
  13. Once, djf@bnr.ca wrote:
  14. >BTW:
  15. > - is there a way to pipe just *1* line through a filter?  I find things like
  16. >   !jsome_command<return>
  17. >always send two lines.
  18.  
  19. Certainly:
  20.  
  21.     !!some_command<return>
  22.  
  23. Just like dd, cc, and yy say to delete, change and yank the current line
  24. (respectively), !! says to pipe the current line to the command.
  25.  
  26.  
  27. G'day,
  28. philip
  29.  
  30.  
  31.