|
Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006
Understand, they ask, do not mind Made before the problems have not been solved and continue to help :
1. Perfectly matched in the text to find out how the string, such as :
W|grep ttyp1 |awk '{print $ objects'
The results ttyp1 ttyp10 ttyp11 ttyp12 : : how can only ttyp1.
2. When a complex Lane consists of two words, "", in which the "" \ front to achieve at tropes.
If abc= "`db2 \" select. . . From. . . \ "|grep. . . `" However, when the three - to or have to, "", the website tropes \ invalid formula wrong. How to achieve a sentence Lane contains n "."
|
Answer 1.
W|grep "ttyp1$" |awk '{print $ objects'
Answer 2
Abc= "`db2 \" select. . . From. . \ "|grep. . . `" |
Answer 2
Add one or two to see deeds |
-->
When ttyp1 not constant but a variable, such $TTY that :
W|grep "$TTY$" |awk '{print $ objects' established? The answer is no! |
You help us to see |
-->
Will spend $ grep is the end of things. Ttyp1 constant is estimated unbearable.
Can try
W|awk 'print{ $ 0 "and" $ 2)' | grep "$TTY$" | awk. . . . . |
| |