Skip to main content
8 events
when toggle format what by license comment
Feb 15 at 16:39 history edited Gilles Quénot CC BY-SA 4.0
added 68 characters in body
Feb 15 at 16:19 comment added user10489 This is a nice example. Basically you replace head with NR==1 and grep with the following pattern match. Since awk is the only program running, there is no conflict and awk splits the pieces nicely.
Feb 15 at 12:59 history edited Gilles Quénot CC BY-SA 4.0
added 1 character in body
Feb 15 at 6:09 comment added showkey head takes all of the output, prints the first line, and then quits throwing away all the rest of what it read,There is no output left for grep to take as input.
Feb 15 at 6:09 comment added showkey 2.What happend in the buffer?
Feb 15 at 6:06 comment added showkey 1.Why for same code structure grep in "ps aux |(head -n 1 ;grep [f]irefox)" have lines to match?
Feb 15 at 6:05 comment added showkey Simple and smart.
Feb 15 at 5:38 history answered Gilles Quénot CC BY-SA 4.0