Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
proc=apache
ps aux | grep $proc| awk '{print $2}' | head -1

Pass Output As Argument via Pipe & XArgs:

https://unix.stackexchange.com/a/503197/130767

No Format
command1 | xargs -I{} command2 {}