Hi,
I have 2 files:-
File A contains a list of numbers but the 1st 7chrs is a unique.
File B contains duplicate sequence number (1st 7chrs)
Any ideas on how I can count how many duplicates in file B.
I suspect I will have to use subscript or substring it but not sure what to use awk/sed or both or maybe somethingelse.
I am using ksh on unix sun solaris v10
if count > 5 (This would be 5 files starting with the same
then
transfer files
else
don't want these files
fi
I have 2 files:-
File A contains a list of numbers but the 1st 7chrs is a unique.
File B contains duplicate sequence number (1st 7chrs)
Any ideas on how I can count how many duplicates in file B.
I suspect I will have to use subscript or substring it but not sure what to use awk/sed or both or maybe somethingelse.
I am using ksh on unix sun solaris v10
if count > 5 (This would be 5 files starting with the same
then
transfer files
else
don't want these files
fi