I have some txt files. I have to create another text file which contains the portion starting from the format "Date Sex Address" to the end of the file. While using grep -n on Date it also gives me the previous line containg Date. and also Date may be DATE in some files.
My file is like this
Name:
Mod Date
Mod By
Description
Date Sex Address
...
....
...
I want my new file to contain from "Date sex " to the end of file. thanks in advance.
Thanks Franklin,
but the space between the words is not consistent. Is there any method to overcome the no of spaces. Some where the Date is written as DATE and I need those also
I have used egrep -n "Date|Sex|Address" and it is not working where Date is occuring multiple times. Please suggest what to use egrep pattern1 and pattern2
Post your input file in the original format and the exact output you want.
Please place them within code tags (select the text and click on the # symbol above the edit window).