@yoda, that would be problematic if there is any kind of whitespace other than the newlines. Even if you set FS to a newline, the RS= would compress multiple newlines and create multiple records.
As a work-around one could choose a character that will not occur in the text for example:
Note that there would need to be curly braces around $1=$1 otherwise it would not print in case of 0 or whitespace in $1
But this would leave a trailing pipe symbol after the last record, so that still would not work as desired...
Also there might be record length limitations..
The code doesn't work as intended.
output:
Quote:
abc
def
ghi
---------- Post updated at 03:42 PM ---------- Previous update was at 03:40 PM ----------