I'm using a scipt with one input and one output.
I'm referring to the input by $1
after executing a command line, I'm getting the output via $1.
Normally, the $1 shouldn't get the same values between the first call and the second.
Is there a solution to force my second call for $1 to get the value of $PS -efo pcpu,vsz,arg
supose my script is called myscript.sh
in the UNIX terminal I will type
$ myscript.sh ProcessName
where ProcessName is the name of the process I want to monitor.
MYPAT=$1 will affect ProcessName to MYPAT.
In the end of the line