My teacher provided us with a file called myProcesses that has the processes from many people, my objective is to cut out all processes for a user as defined by a variable, how can i achieve this?
Here are my variables so far.
command=grep
user=mhalprin
file=myProcesses
With this, i am able to cut all processes that include "mhalprin" somewhere in the myProcesses file, but one of those include the "root" user because it has "mhalprin" at the end, how can i cut that out of this command? Screen shot of output