Hi, I am not sure if this will work or not. I am getting a syntax error.
I am reading fileA, using an acct number field trying to see if it exists in fileB and output to new file. Can anyone tell me if what I am doing will work or should I attempt it another way? Thanks.
exec < "${fileA}
while read dataline
do
ACCT=`echo "${dataline}" | cut -c 1-7`
awk `{print substr($0,11,7)=="${ACCT}"}` "${fileB}" >> "${fileC}"
I am a syntax error on the awk line. Thanks in advance for your help.