![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| retrieved multiple lines on multiple places in a file | dala | Shell Programming and Scripting | 8 | 03-14-2008 12:28 PM |
| error: initializer expression list treated as compound expression | arunchaudhary19 | High Level Programming | 12 | 11-16-2007 03:44 AM |
| Expression for Finding Multiple Directories..?? | meskue | Shell Programming and Scripting | 3 | 07-10-2006 12:04 PM |
| How to choose Multiple process or Multiple threads? | ashleykumar | IP Networking | 0 | 04-10-2006 03:30 AM |
| Regular Expression + Aritmetical Expression | Z0mby | Shell Programming and Scripting | 2 | 05-21-2002 07:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
need help on multiple expression
this is the content of the file:
Quote:
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Code:
awk '!/^\=+/ && !/^\(/ ' your_file |
|
#3
|
|||
|
|||
|
Something like this?
Code:
grep -v '^[(=]' inputfile > outputfile |
|
#4
|
|||
|
|||
|
now i got another problem
my dashes "---" "---" are not at the first line, and iwant to remove them as well however when i try to do this: Quote:
|
|
#5
|
|||
|
|||
|
can you please explain the pattern to me?
and it says event not found |
|
#6
|
||||
|
||||
|
To remove the dashes too, use:
Code:
awk '!/^\=+|^\(|^\-+/' your_file |
|
#7
|
|||
|
|||
|
it recognizes awk, but it doesn't recognizes '/^\' this particular pattern
|
|||
| Google The UNIX and Linux Forums |