get pid in bash
I want to get the pid of a process in a shell skript to put it into a variable...
it must be going something like
ps -e | grep myapp | grep regexp
but how to use a regexp , that it gives me all numbers from the beginning of the line to the next space?
maybe grep is not the right thing to extract