![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 10-25-2008 01:37 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 07:47 AM |
| help to find find filename usingFile pointer in c | arunkumar_mca | UNIX for Dummies Questions & Answers | 2 | 08-07-2007 11:23 AM |
| Find files older than 20 days & not use find | halo98 | Shell Programming and Scripting | 2 | 05-18-2006 03:19 PM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 06:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to find only PID value
When I run ps -aef | grep aaa.exe it gives out put Code:
user 5091 5518 0 10:13:25 pts/1 0:00 grep aaa.exe user 4647 2479 0 09:26:31 ? 0:25 /kk/zzz/user/xxx/bin/aaa.exe user1 1111 2222 0 08:26:31 ? 0:25 /kk/zzz/user1/xxx/bin/aaa.exe I need Only PID value ie 4647,1111 So how can I run in the command prompt Last edited by Yogesh Sawant; 06-20-2008 at 05:56 AM.. Reason: added code tags |
|
||||
|
it displays PID value with PID of grep aaa.exe but I dont need PID value of grep aaa.exe and again When I stored it to a variable it stores all values ie PID,tty etc but I need only value to store in the variable without grep aaa.exe value ie only running aaa.exe value
Plz suggest |
![]() |
| Bookmarks |
| Tags |
| grep, pgrep |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|