Building an awk alias in (t)csh
Eric D. Hendrickson
edh at ux.acs.umn.edu
Thu Jan 17 06:58:01 AEST 1991
I would like to make an alias like this:
alias where "who | grep \!:1 | awk '{print $6}' -"
which would output the originating host of the user caled for. I have
tried all kinds of permutations of quote characters, etc, with no luck. I
ended up making the awk portion into a one-liner script and piping to that
instead.
This command works fine on the command line, but not as an alias. Can
anybody tell me what I am doing wrong/should do?
Thanks very much,
--eric
--
/----------"Oh carrots are divine, you get a dozen for dime, its maaaagic."--
|Eric (the "Mentat-Philosopher") Hendrickson Academic Computing Services
|edh at ux.acs.umn.edu The game is afoot! University of Minnesota
\-"What does 'masochist' and 'amnesia' mean? Beats me, I don't remember."--
More information about the Comp.unix.shell
mailing list