Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
5
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 13 votes cast
Feb
6
comment sudo to kill output of ps, awk, xargs
Very useful, thankyou very much
Jan
12
comment sudo to kill output of ps, awk, xargs
If I run the commands without "|kill" the output on the screen is not formatted by awk. sudo sh -c "ps aux | grep [f]oo | awk '{print $2}' | xargs
Jan
11
comment sudo to kill output of ps, awk, xargs
Thanks, I can see the processes and the pids