I need to grep out a process... for example.. if I do
$ ps -ef
This is what is shows...
root 1091 1 0 16:42 ? 00:00:00 esd -terminate -nobeeps -as 2 -spawnfd 22
root 1100 1 0 16:42 ? 00:00:03 gnome-panel --sm-client-id default2
root 1102 1 0 16:42 ? 00:00:03 nautilus --no-default-window --sm-client-id default3
root 1104 1 0 16:42 ? 00:00:00 magicdev --sm-client-id default4
Say I needed to grep out the process wtih 'default3' in it. I thought I could just do.
ps -ef | grep default3
This returns nothing. However is I change it to
ps -ef | grep nautilus
it returns the process fine. How can I get it to grep the stuff after the file name? Any ideas?
Thanks,
Dirt