Hello Friends,
Can somebody assist an issue I am having? I have a separate file with a list of account ids
XXX200B02Y01
XXX200B03Y01
XXX200B05Y01
XXX200B07Y01
XXX200B08Y01
I call the file, and run an egrep against a directory and logfiles
AccountID=$(cat /home/resource/frodo/tmp/al/ETakers)
/raid/test/`date +%Y/%m/%d`/test/orders/* | /bin/egrep "$AccountID" |grep SUBMITTED | sed 's/.*UserId:\(.*\),Id.*/\1/g' |sort |uniq -c >> /home/resource/frodo/tmp/al/scripts/XXXordertestCOPY.txt
Now getting the correct count is not the issue.
40 XXX200B02Y01
58 XXX200B03Y01
953 XXX200B05Y01
737 XXX200B07Y01
1702 XXX200B10Y1
1028 XXX200B30Y01
1557 XXX200C02
40 XXX200D02Y01
58 XXX200D03Y01
952 XXX200D05Y01
735 XXX200D07Y01
1694 XXX200D10Y01
1026 XXX200D30Y01
939 XXX200E05Y01
753 XXX200E07Y01
1130 XXX200E10Y01
1029 XXX200E30Y01
1020 XXX201B01
837 XXX201B02
965 XXX201B03
415 XXX202B01
415 XXX202B02
415 XXX202B03
307 XXX203B02
642 XXX203B03
309 XXX203C01
518 XXX203C02
The issue, i'm having is getting the account ids to not match to be printed as well. ex.
0 XXX200B07Y01
0 XXX200B08Y01
642 XXX203B03
309 XXX203C01
518 XXX203C02
do i need to add some counter and set to 0 somewhere?
your assistance is greatly appreciated.
Al