hello,
on the output of:
ps -uauser -e -o pid,ppid,args
I can extract lines like (it is example):
17531 11234 bcommand options .....
17803 17802 /bin/bash ascript .....
17871 17803 acommand options .....
11234 17755 /bin/bash bscript .....
etc...
and I want to search for pairs of processes (parent+child, so lines for which pid in one line == ppid in second one) and join them in one line to get finally output - example basing on above input:
17803 17802 /bin/bash ascript ..... acommand options .....
11234 17755 /bin/bash bscript ..... bcommand options .....
thank you for any hint
on the output of:
ps -uauser -e -o pid,ppid,args
I can extract lines like (it is example):
17531 11234 bcommand options .....
17803 17802 /bin/bash ascript .....
17871 17803 acommand options .....
11234 17755 /bin/bash bscript .....
etc...
and I want to search for pairs of processes (parent+child, so lines for which pid in one line == ppid in second one) and join them in one line to get finally output - example basing on above input:
17803 17802 /bin/bash ascript ..... acommand options .....
11234 17755 /bin/bash bscript ..... bcommand options .....
thank you for any hint