![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grep command | nickg | UNIX for Dummies Questions & Answers | 14 | 10-06-2008 11:22 AM |
| grep command | christine33990 | UNIX for Dummies Questions & Answers | 11 | 05-06-2008 02:45 AM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-05-2007 02:59 AM |
| grep command help | ishmael^soyuz | Shell Programming and Scripting | 4 | 07-11-2007 09:01 AM |
| grep command | debasis.mishra | Shell Programming and Scripting | 1 | 03-28-2006 01:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Quote:
if [ 1 -eq 2 ]; What are you trying to do with the # as this is commenting out scissors?! Sorry but what is the ps -ef | grep "scissors *.* supposed to be doing? Also no fi at the end of the if so it will not work anyway! |
|
||||
|
can u give me the directory structure cos the the syntax what u have given is */* which means that u r searching for a pattern in current directory say
X, 1st * tells to search the pattern in all the directories under X 2nd * i,e /* tells to get into each of * directories under X, search in all the files under each of * directories. Hope u got my pt. rgds, jam |
|
||||
|
grep '\[ 1 \-eq 2 \]; then' *
Hope this works. I dont know why you are using ps it just lists the processes running in the unix box. The above should help you |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|