LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Distinguish From The A File Contents Which The Processes Are (https://www.linuxquestions.org/questions/linux-newbie-8/distinguish-from-the-a-file-contents-which-the-processes-are-629099/)

jianelisj 03-18-2008 11:51 PM

Distinguish From The A File Contents Which The Processes Are
 
How Can I Distinguish From The A File Named Procs (in The Current Directory) That Contains Names Such As

Httpd
Date
Ps
Gettty
Etc.

Which Names Are Representing Processes And Which Are Not?

My Thought Is:
For I In $(sort ./procs | Uniq); Do
Echo $i|grep Ps
Done

But I Show Only The Name Ps And Not Other Processes. Please Any Help

Tinkster 03-19-2008 01:23 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...4/#post3092938
http://www.linuxquestions.org/questi...9/#post3091056


Posting homework questions isn't bad enough? Now you're triple-posting
those? You're not making yourself any more popular, my friend.


All times are GMT -5. The time now is 05:41 PM.