home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5176 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  827 b 

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!nigel.msen.com!hela.iti.org!cs.widener.edu!eff!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
  2. From: kevinl@tisdec.tis.tandy.com
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How to do csh-like alias in ksh?
  5. Message-ID: <28300010@tisdec.tis.tandy.com>
  6. Date: 28 Dec 92 14:45:00 GMT
  7. References: <8880@microsoft.com>
  8. Lines: 13
  9. Nf-ID: #R:microsoft.com:8880:tisdec.tis.tandy.com:28300010:000:304
  10. Nf-From: tisdec.tis.tandy.com!kevinl    Dec 28 08:45:00 1992
  11.  
  12.  
  13.     You need to use a ksh function.  Something like this:
  14.  
  15. function ff {
  16.     find . -name $1 -print
  17. }
  18.  
  19.     It works just like an alias, but has shell script syntax.
  20.  
  21. Hope this helps.
  22. --
  23. Kevin K. Lewis             | My opinions may be unreasonable
  24. kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
  25.