Hello,
I have had a lot of help in this forum learning how to write a script in unix and I really appreciate your help. Now I have another challenge for me to do. The following script below works fine when I'm trying to list all active procedures running under ScanFileClient (daemon). I have no problem so far with the script I created except now I wanted the listing to be sorted by the third displayed field($10). Thanks for any help on this.
ps -ef | awk '/S[c]anFileClient/{printf "%3d) %s\t%s\t%s\t%s \n",++i,$2,$9,$10,$11}'
I have had a lot of help in this forum learning how to write a script in unix and I really appreciate your help. Now I have another challenge for me to do. The following script below works fine when I'm trying to list all active procedures running under ScanFileClient (daemon). I have no problem so far with the script I created except now I wanted the listing to be sorted by the third displayed field($10). Thanks for any help on this.
ps -ef | awk '/S[c]anFileClient/{printf "%3d) %s\t%s\t%s\t%s \n",++i,$2,$9,$10,$11}'