ps -el | awk '{ if ($5==PPID) print $line; }'
kde PPID je cislo parent procesualebo script s parametrom:
#!/bin/bash
scr='{ if ($5=='$1') print $line; }'
ps -el | awk "$scr"
ps -el | awk '{ if ($5==PPID) print $line; }'
kde PPID je cislo parent procesu#!/bin/bash
scr='{ if ($5=='$1') print $line; }'
ps -el | awk "$scr"