Hi,
i have a file with some blank lines.
I want to create a new file without the blank lines.
How can i do?
I'm using this command
awk -f script.awk file1.txt > file2.txt
where script.awk is:
BEGIN {
if ( $0 =! "" ) print $0
}
Syntax Error The source line 2.
The error context is
BEGIN >>>
<<<
awk: 0602-500 Quitting The source line is 2
Please help.
Thanks
i have a file with some blank lines.
I want to create a new file without the blank lines.
How can i do?
I'm using this command
awk -f script.awk file1.txt > file2.txt
where script.awk is:
BEGIN {
if ( $0 =! "" ) print $0
}
Syntax Error The source line 2.
The error context is
BEGIN >>>
<<<
awk: 0602-500 Quitting The source line is 2
Please help.
Thanks