Quote:
Originally Posted by
vgersh99
please, once again - take a look at the previous
post.
Thanks alot.
THough i bugged you alot but finally i understood your point.
Please correct me in below understanding if i am wrong.
I need to create a standalone script if i want it to run alone.
and in case if i want it to be called from another script then i need a wrapper script.
This is the wrapper version
#! /usr/bin/nawk -f
BEGIN {
FS="@@"
}
#nawk -F'@@' '
FNR==NR {a[$1]; next}
!($1 in a)
and below is the standalone version
#! /bin/sh
first_file=$1
second_file=$2
nawk -F'@@' '
FNR==NR {a[$1]; next}
!($1 in a)
' $first_file $second_file
And following is the way to call a wrapper version script from a wrapper script
/usr/xpg4/bin/awk -f /home/odyssey/f091018/cmp.awk /tmp/set4 /tmp/set5
Please correct me wherever i wrote wrong.
My script is running anyway .... hurrah !!!
Thanks alot for your patience !!!!