I have two files as atributes in my script with ten lines in each. They contain simple answers: YES or NO. I need to compare those two files and get number of good answers and bad answers. I need to have them in separate variables. I have tried :
diff <(nl $1) <(nl $2) | grep -E '<' | wc -l
and i get number of bad aswers, but i want it to be in some variable.
https://stackoverflow.com/questions/67258430/comparing-two-files-with-simple-answears-summing-them-up-with-no-output-to-cons April 26, 2021 at 05:23AM
没有评论:
发表评论