Commit 37039792 authored by Michał Kępień's avatar Michał Kępień
Browse files

[master] Replace FNR with NR in the awk script used by nextpart()

awk on Solaris does not support the FNR variable.  As nextpart() only
reads from one file, replace FNR with NR.
parent 41b1a985
......@@ -195,8 +195,8 @@ fi
nextpart () {
[ -f $1.prev ] || echo "0" > $1.prev
prev=`cat $1.prev`
awk "FNR > $prev "'{ print }
END { print NR > "/dev/stderr" }' $1 2> $1.prev
awk "NR > $prev "'{ print }
END { print NR > "/dev/stderr" }' $1 2> $1.prev
}
#
......
......@@ -185,8 +185,8 @@ echoinfo () {
nextpart () {
[ -f $1.prev ] || echo "0" > $1.prev
prev=`cat $1.prev`
awk "FNR > $prev "'{ print }
END { print NR > "/dev/stderr" }' $1 2> $1.prev
awk "NR > $prev "'{ print }
END { print NR > "/dev/stderr" }' $1 2> $1.prev
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment