Thread View: comp.unix.shell
1 messages
1 total messages
Started by Mike Faber
Thu, 27 Dec 1990 17:31
Re: 1st annual comp.unix.shell Quiz
Author: Mike Faber
Date: Thu, 27 Dec 1990 17:31
Date: Thu, 27 Dec 1990 17:31
25 lines
1524 bytes
1524 bytes
Yea, the quiz was pretty easy. I got so many answers, I won't waste the
bandwidth with the names and their solutions. These were the correct replys:
ps -ef | grep [u]u (assuming no file called uu in this directory :-o)
ps -ef | grep '\u\u' (and other variants of letting grep do the wildcards)
ps -ef | grep uu | awk '!/uu/' (I got a perl like this, too, but lost it in
a wildcarded rm oops... 8-()
ps -ef | awk '/uu/' (Extra credit for no grep process)
ps -ef |grep uu | sed '/grep/d' (This was my original solution, others got
it, too)
Wrong answers included:
ps -ef |grep \u\u (Shell won't interpret the u's and something else,
but it'll still print the grep process)
ps -ef | awk '$5 !~ /grep/ {print $5} (Huh? I want all of the info...)
If I didn't get yours, I apologize, I was a bit overwhelmed by work about
2 days after I posted the quiz. Next year I'll wait until after Christmas
(and post a harder question :-)
--
sleepy@wybbs.UUCP
Michael Faber
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads