Hello guys,
New to unix scripting here.
Question 1:
I have this text (log) file that has lines that contains ** (two asterisk) in few lines. I would like to read the file and spit out only those lines that contains ** to a file with the line break.
Question 2:
Would like to do the same but this file has a large amount of data.
I would want to pass a Today's date (or any date) as an argument and find the first line that begins with that date , and then get all the lines that contains ** for that date.
The date format in log file is yy/mm/dd and the line starts like this [03/12/02@
Please let me know the solution to both of these scenarios. Your help is really appreciated.
Thanks a lot in advance,
NRastogi
New to unix scripting here.
Question 1:
I have this text (log) file that has lines that contains ** (two asterisk) in few lines. I would like to read the file and spit out only those lines that contains ** to a file with the line break.
Question 2:
Would like to do the same but this file has a large amount of data.
I would want to pass a Today's date (or any date) as an argument and find the first line that begins with that date , and then get all the lines that contains ** for that date.
The date format in log file is yy/mm/dd and the line starts like this [03/12/02@
Please let me know the solution to both of these scenarios. Your help is really appreciated.
Thanks a lot in advance,
NRastogi