[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.
This commit is contained in:
Michał Kępień 2017-10-31 14:53:16 +01:00
parent 41b1a98545
commit 37039792cb
2 changed files with 4 additions and 4 deletions

View file

@ -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
}
#

View file

@ -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
}
#