home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / misc / 3302 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.6 KB

  1. Xref: sparky comp.unix.misc:3302 comp.unix.questions:10198
  2. Newsgroups: comp.unix.misc,comp.unix.questions
  3. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!underdog
  4. From: underdog@leland.Stanford.EDU (Dwight Joe)
  5. Subject: Re: Summary of (Re: Grep-ing for Constants (Re: Assembler Syntax...))
  6. Message-ID: <1992Aug20.051431.12803@leland.Stanford.EDU>
  7. Keywords: recap of "EXPORT", grep, UTLB exception handler
  8. Sender: news@leland.Stanford.EDU (Mr News)
  9. Organization: Miners for a Heart of Gold
  10. Date: Thu, 20 Aug 92 05:14:31 GMT
  11. Lines: 31
  12.  
  13. In article <1992Aug19.235443.21099@leland.Stanford.EDU>
  14. underdog@leland.Stanford.EDU (Dwight Joe) writes:
  15. >
  16. >I received numerous replies.
  17. >
  18. >The one with the simplest explanation was
  19. >
  20. >   Try:
  21. >     find . -exec grep your_string {} \; -print | pg
  22. >
  23. >I've tried it, and it works.  Most of the other replies had
  24. >variations on combining "find" and "grep".
  25.  
  26. It would be more useful to me if I could do the following:
  27.  
  28.     alias skan  find . -exec grep $$ {} \; -print | pg
  29.  
  30. Then, by typing "skan VALUE", I could look for the files with the
  31. string "VALUE".  Is it possible to do an alias with a dummy argument
  32. like "$$"?
  33.  
  34. If not, how could I do it?
  35.  
  36. Please send e-mail.
  37.  
  38. -------------------------------------------------------------------------------
  39. Seikatsu no imi wa nan desu ka.            \|  |`      | Don't buy from Toyota;
  40. Shitte itara oshiete kuremasen ka.          | -+-      | especially, don't buy
  41.                                            /| / \      | from Capitol Toyota in
  42. Copyright 1992.                                        | San Jose, California.
  43. -------------------------------------------------------------------------------
  44.