Guest_imported
New member
- Jan 1, 1970
- 0
What is wrong with the code below? Or, how should I write it if it is incorrect altogether?
Here are the rules:
All true rows can be on multiple physical rows
I need to get those true rows onto one physical row.
The end of a true row has a pipe/newline ( /\|$/ )at the end of any given sequential physical row.
BEGIN
$0 ~ /\|$/
{ if (match($0, '/\|$/'))
currow = currow + " " + substr( $0, 1, $0 - 1 )
else
currow = currow + " " + $0 + " "
}
Here are the rules:
All true rows can be on multiple physical rows
I need to get those true rows onto one physical row.
The end of a true row has a pipe/newline ( /\|$/ )at the end of any given sequential physical row.
BEGIN
$0 ~ /\|$/
{ if (match($0, '/\|$/'))
currow = currow + " " + substr( $0, 1, $0 - 1 )
else
currow = currow + " " + $0 + " "
}