Search Results

Search: Posts Made By: armatron
1,703
Posted By Scrutinizer
In addition, I would consider using $2!=pid,...
In addition, I would consider using $2!=pid, since at some point, the numbering of processes may start anew, so an earlier process is not always guaranteed to have a lower number..
1,703
Posted By clx
$$ is special variable of the shell (not of awk)....
$$ is special variable of the shell (not of awk). Shell's variable are not visible inside awk (the way you have used in your code).

You may want to consider

awk -v pid=$$ '{if ($2<pid) print...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy