Hi,
I´ve a problem with awk script, i need print all lines from the input file until a character - or white line. I make the next script for this:
{
if (/arrakis/) {
do {
print
getline
} while (!/-/)
if (/EOF/) {print}
print "-"
} else next
I need that apart from the condition while (!/-/) validate if is a white line
Anyboy help me
I´ve a problem with awk script, i need print all lines from the input file until a character - or white line. I make the next script for this:
{
if (/arrakis/) {
do {
getline
} while (!/-/)
if (/EOF/) {print}
print "-"
} else next
I need that apart from the condition while (!/-/) validate if is a white line
Anyboy help me