I need help to create a script for a "ps -ef" command that will remove or blank out a sensitive parm value. I do require the -ef options in the ps cmnd. The character string required to be blanked out follows the value "AUTOSYS". Here's a sample of the output:
jdeb7333 217538 169032 0 10:00:57 - 0:51 runube AUTOSYS sensitive PD7333 R5641002 DLT001 ...etc
The sensitive value is the 10th parm and it must follow AUTOSYS to be a candidate for wiping out. The remaining info is to be displayed at the standard out. I've looked at sed and grep'ing but can't seem to get them to work successfully. Any help is appreciated.
jdeb7333 217538 169032 0 10:00:57 - 0:51 runube AUTOSYS sensitive PD7333 R5641002 DLT001 ...etc
The sensitive value is the 10th parm and it must follow AUTOSYS to be a candidate for wiping out. The remaining info is to be displayed at the standard out. I've looked at sed and grep'ing but can't seem to get them to work successfully. Any help is appreciated.