Search Results

Search: Posts Made By: lpprasad321
1,597
Posted By MadeInGermany
kill `ps -ef | grep '[t]omcat' | grep -w PNK1 |...
kill `ps -ef | grep '[t]omcat' | grep -w PNK1 | awk '{print $2}'`
The [t] trick avoids that grep finds itself.
The -w finds words, like \< \> boundaries.
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy