![]() |
|
|
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 insert and delete any line after desire line | RahulJoshi | Shell Programming and Scripting | 4 | 10-20-2008 11:27 AM |
| sed: delete regex line and next line if blank | one71 | Shell Programming and Scripting | 2 | 09-18-2008 06:53 AM |
| how to delete text from line starting pattern1 up to line before pattern2? | repudi8or | Shell Programming and Scripting | 5 | 04-15-2008 10:25 PM |
| how to delete line with matching text and line immediately after | orahi001 | UNIX for Dummies Questions & Answers | 6 | 01-15-2008 12:34 AM |
| delete a line based on first character of the line | borncrazy | UNIX for Dummies Questions & Answers | 2 | 12-06-2005 03:27 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Delete a line
Hi there all.. I have a question. I create a array to count how many processes I have running of that particulair thing. as in Code:
set -A PROCCOUNT `ps -ex | grep ${PRO_NAME_A[0]} | grep ${PRO_NAME_B[0]} | awk '{print $4}'`
Now I also get my greps in as a result so it counts more when I want to dump it to the screen. How can I make this line better so it would ignore the lines with grep in there? If this is all unclear than tell me pls, than I post more of the script so you people know what I have build. Many thanks in advance! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|