I trying to build a script in linux – bash, being new to it. I would like to assign the output of the command ps -ef as a variable. Can someone help me with that? The trivial myVariable = ps -ef is unfortunately not working.
I trying to build a script in linux – bash, being new to it.
Share
You want:
or:
Note no spaces around the ‘=’ sign.