hi all,
for an example:
$ ps -ef | grep apache | awk '{ print $2, $3 }'
24073 11784
28021 1
28022 1
28038 1
28041 28040
28045 28041
28047 28041
28040 1
28049 28041
28051 28041
28053 28041
28030 1
28054 28041
28055 28041
28056 28041
28057 28041
28061 28039
28065 28041
28066 28041
28067 28041
28068 28041
28069 28041
28070 28041
28071 28041
28078 28041
28080 28041
I want to display only the second columns showing "1" assocaited PID's
in our case output should show:
28021 1
28022 1
28038 1
28040 1
28030 1