I wrote a simple python script.
During the script i’m using
os.system ("diff file1 file2")
to check if two text files are similar or not.
I know the files are similar if nothing is being printed out.
In case nothing is being printed, i’d like to print out something
to the command line like “> the file are similar”.
Any ideas?
if
Truethen just print message like both are similarfilecmp– A byte by byte efficient comparison it is