I need help as I just can't make it work.
In a file I need all lines from 'date' written as 07/11/10 to end of file.
Date variable is written as:
which outputs the correct format.
Normal notation for what I want would be:
sed -n '/regex/,Sp' in > out
Replacing the regex with $DATE:
sed -n '/$DATE/,Sp' in > out
won't work however, no matter how much I tried using single/double quotes, other seperators than /, working with \ as escape character, ....
I'm at a loss, 'date' is the only relevant criterium to select upon.
From attached file only lines starting from 07/11/10 till end of file should be retained.
Any alternative (for sed) that works is welcome too.
Platform is hpux with ksh.