The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep help flood Shell Programming and Scripting 3 06-05-2008 10:14 PM
Grep Aejaz UNIX for Advanced & Expert Users 3 04-30-2008 04:10 AM
grep dineshr85 Shell Programming and Scripting 1 10-10-2007 01:52 AM
how to exclude the GREP command from GREP yamsin789 UNIX for Advanced & Expert Users 2 10-04-2007 11:59 PM
Make grep -c display like grep -n? Jerrad Shell Programming and Scripting 2 08-24-2006 09:20 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-14-2006
Registered User
 

Join Date: Jan 2006
Location: Mumbai
Posts: 43
Smile grep

hi all:
what does the following command do. give me a clear explanation.

ps -ef | grep prg1 | grep -v grep | awk '{print $5}'



any help will be appreciated....

Bankpro
Reply With Quote
Forum Sponsor
  #2  
Old 03-14-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Did you try it out ? What did you get ? Where did you get stuck ?
Reply With Quote
  #3  
Old 03-14-2006
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Quote:
Did you try it out ? What did you get ? Where did you get stuck ?
Vino, some ppl are just waiting to be spoon-fed ... well, or just playing with our nerves .
Reply With Quote
  #4  
Old 03-14-2006
Registered User
 

Join Date: Jan 2006
Location: Mumbai
Posts: 43
i am not getting any out put......
Reply With Quote
  #5  
Old 03-14-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Quote:
Originally Posted by bankpro
i am not getting any out put......
If you are not getting any output then it means there is no process by the name prg1. Run prg1 and then try.
Reply With Quote
  #6  
Old 03-14-2006
Registered User
 

Join Date: Jan 2006
Location: Mumbai
Posts: 43
withreference to grep

Hello andrk

we are begginners in unix. if u can help us do it otherwise mind your own business.

i don't think so forums are just to ask only advanced questions in a subject.
Reply With Quote
  #7  
Old 03-14-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Quote:
Originally Posted by bankpro
Hello andrk

we are begginners in unix. if u can help us do it otherwise mind your own business.

i don't think so forums are just to ask only advanced questions in a subject.
True, forums are for everyone. Beginners, experts, outsiders.. everyone.

Rules say
Code:
(1) No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts. 
(2) No negative comments about others or impolite remarks. Be patient. 
(3) Refrain from idle chatter that does not contribute to the knowledge base.
Let us not forget that these rules apply to each and every member in the forum.

Cheers'.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0