Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

compare two files shell script

if cmp -s "file1" "file2"
then
   echo "The files match"
else
   echo "The files are different"
fi
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #compare #files #shell #script
ADD COMMENT
Topic
Name
2+9 =