LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Closed Thread
 
Search this Thread
Old 03-19-2008, 12:51 AM   #1
jianelisj
LQ Newbie
 
Registered: Mar 2008
Posts: 18

Rep: Reputation: 0
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
 
Old 03-19-2008, 02:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distinguish from the contents of a file which are the processes and print them jianelisj Linux - Newbie 4 03-19-2008 10:24 AM
Distinguish from the contents of a file which are the processes (NEWTHREAD) jianelisj Linux - Newbie 1 03-18-2008 03:07 PM
Make a Script Fle that opens A file and prints its contents (processes names) once jianelisj Linux - Newbie 4 03-17-2008 01:27 PM
how to distinguish a file and a directory joeyBig Programming 2 10-01-2004 05:21 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration