diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/awk/d_assign_NF.awk')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/awk/d_assign_NF.awk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/awk/d_assign_NF.awk b/contrib/netbsd-tests/usr.bin/awk/d_assign_NF.awk new file mode 100644 index 0000000..52c3912 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/awk/d_assign_NF.awk @@ -0,0 +1,16 @@ +# $NetBSD: d_assign_NF.awk,v 1.1 2012/03/11 18:35:59 jruoho Exp $ + +{ + NF = 2 + print "$0=`" $0 "`" + print "$3=`" $3 "`" + print "$4=`" $4 "`" + NF = 3 + print "$0=`" $0 "`" + print "$3=`" $3 "`" + print "$4=`" $4 "`" + NF = 4 + print "$0=`" $0 "`" + print "$3=`" $3 "`" + print "$4=`" $4 "`" +} |