I'm using cygwin for comparison count of files in 2 directories. I'm using this script:
a=$(ls //NSVA/Matrical/Vitesse/REPORTS | grep .csv | grep $1 | grep -v Pull | wc -l) b=$(ls //10.9.214.200/Lims/LimsLZ/starlims1/done/Nitrostore_stored/$1 | grep -v Pull |wc -l) echo "Count of Uploaded files in NS is $a" echo "Count of Uploaded files in LZ is $b" if [ $a -eq $b ]; then echo "Count MATCH!"; else echo "Count does NOT MATCH!!!"; fi;
Now I have to compare files in
$b. They should be identical but it could be that
$a has more or
$b has more.
Could someone please advice how to do it?
I have an idea like re-direct it to e.g.
$d and than grep it and etc but I have an issue with syntax.
I'd appreciate if someone could give me example of finding the difference of content between those two directories.