this is using AIX, different systems could handle this differently.
1) LN does not show to be a defined variable in my awk. (I even checked the gawk manual to see if it were there.) Why use $0 when just a simple print will default to the present line.
2) I was not sure if you wanted the current process ($$) or the parent process ($PPID} - ${PID}, was not defined in my version of AIX.
Hi "awk", Thanks and sorry for not clarifying enough.
The line is part of a running and working bash script on Linux.
PID is a local variable and the awk line is using its value to print the relevant line from ps.
I don't want to change the code (unless I have too), rather understand why it is used that way.