The unix scripting forum gave me some script to perform what I needed, but I am stuck with an issue:
#begin code
BEGIN {
RS=FS=""
}
$1 ~ /^CB +/ && $2 ~ /^YES +/ { print prev }
{prev=$NF}
#end code
At the top of my file there is similiar to text below:
USERCODE:beaster
PASSWORD:
WO VABSC023G000205Y2900C00 NVT-560 TIME 060105 1347 PAGE 1
<rlsbp:cell=all;
Is there a way to have awk/nawk ignore what it perceives as binary?
Other post:
#begin code
BEGIN {
RS=FS=""
}
$1 ~ /^CB +/ && $2 ~ /^YES +/ { print prev }
{prev=$NF}
#end code
At the top of my file there is similiar to text below:
USERCODE:beaster
PASSWORD:
WO VABSC023G000205Y2900C00 NVT-560 TIME 060105 1347 PAGE 1
<rlsbp:cell=all;
Is there a way to have awk/nawk ignore what it perceives as binary?
Other post: