Xref: utzoo comp.misc:9060 comp.unix.wizards:22164 Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!evax!bush From: bush@evax.arl.utexas.edu (Joe Bush) Newsgroups: comp.misc,comp.unix.wizards Subject: Re: Your favourite UNIX pipe ? Keywords: pipe Message-ID: <1990May25.191831.14377@evax.arl.utexas.edu> Date: 25 May 90 19:18:31 GMT References: <690@coma.UUCP> <24468@unix.cis.pitt.edu> Organization: UT-Arlington-CSE Lines: 21 Here is one I concocted to search for key words in include files: echo -n "key=";set kw=`line`;find /usr/include/. /sys/. -name \*.h -print | xargs hgrep "$kw" {} I keep a file of such one-liners like the one above (file of one line pipe-programs is named $HOME/.syscom) and have the following line in my .cshrc: alias g 'set j=`cat ${home}/.syscom|wc -l`;source -h ${home}/.syscom; history | tail -"$j"' Then when I enter "g" from the keyboard, my csh history mechanism gets primed for easy execution. I find it quite handy... - Joe -- bush@evax.arl.utexas.edu Vax Systems Manager (817) 273 - 3333 CSE Dept. UT-Arlington Office Rm 221 EB2 403 South Cooper P.O. Box 19015 Arlington, Texas 76019