I have a multiple line file with each record seperated by a line of 45 asteriks. I am trying to print just specific fields/lines within each record. Some fields within the record may have an asterik in it. According to the O'reilly book, awk only pays attention to the first char. of the RS value. How can I accomplish this?
I tried, awk file:
BEGIN { FS = "\n"; RS = "\*" }
{print $1, $3, $4, $6 }
Tried using "*" without the escape char., using all 45 astericks "\*+". Nothing seems to work.
thanks.
I tried, awk file:
BEGIN { FS = "\n"; RS = "\*" }
{print $1, $3, $4, $6 }
Tried using "*" without the escape char., using all 45 astericks "\*+". Nothing seems to work.
thanks.