Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 03-18-2008, 11:51 PM   #1
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


Which Names Are Representing Processes And Which Are Not?

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

But I Show Only The Name Ps And Not Other Processes. Please Any Help
Old 03-19-2008, 01:23 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,041
Blog Entries: 11

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

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 09:24 AM
Distinguish from the contents of a file which are the processes (NEWTHREAD) jianelisj Linux - Newbie 1 03-18-2008 02:07 PM
Make a Script Fle that opens A file and prints its contents (processes names) once jianelisj Linux - Newbie 4 03-17-2008 12:27 PM
how to distinguish a file and a directory joeyBig Programming 2 10-01-2004 04:21 AM

All times are GMT -5. The time now is 03:49 AM.

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