|
Hi Anbu,
I was off for few days and hence the delay in replying.
I tried your stuff but I am getting this error
awk -v check_val="$1" '{
if( $0==check_val) { key[$0]++ }
if(key[$0] < 2 ) print $0
}' inputfile > outputfile
awk: syntax error near line 1
awk: bailing out near line 1
I created a script test and fired it like ksh test.ksh cattle
I am using korn shell. Do i need to make some changes for that ?
Thanks in advance.
cheers,
gops
|