![]() |
|
|
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. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Awk help
Hi,
I have a text file in which I have to search for 2 keywords simultaneously one of them will be a constant eg . HEADER and the other will be the system date in MM-DD-YYYY format how do i do in awk both of them will be on the same line always but not together eg xxxxxxxxxxxxxxxxxxHEADERxxxxxxxxx11-15-2006xxxxxxxxxxxxxxxxx Earlier when i had only 1 string to search I was using cat <file_name>| awk /"HEADER"/,/"<EOF>"/ > file2.txt what modifications can i do to include sysdate check as well to the HEADER keyword ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|