To check two text file to see if both are having to some contents
Clone or download this project or just the bin directory, and set the bin directory in system environment variable.
-
# compare two file if the contents are the same or not ch file1.txt file2.txt # help command (man) ch -m # display the version of Checker ch -v # compare the two file without(Ignore) the space ch -s file1.txt file2.txt # compare the two file without(Ignore) the Substring ch -c 'Substring' file1.txt file2.txt
-
-
check: no file arguments
-
# Error on the first file input file1 error : File not Found error # Error on the second file input file2 error : File not Found error
-
# "line #" represent the lines with different content result is -> false : line # # one of the file has more contents the other file, "line #" represent starts with this line, and there is more contents to follow result is -> false : line # and keep on
-
result is -> true : all line Match
-
-
link of dependency : https://github.com/alex85k/wingetopt
- Window version of getopt(...)