i was given an option of :- replacing awk ''if(rno==$1) { print $1>"tem" }'DATA with
awk -v rno=$rno 'rno == $1 {print $1 > "tem"}' DATA i.e no 'if' needed also, further down, change if test flag -ne 1 to if test $flag -ne ..but this also din't work.. -- Inserting into a database https://bugs.launchpad.net/bugs/272681 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs