Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command to compare the content of files

diff <file1 name> <file2 name>

# To output the result side-by-side, use -y option
diff -y <file1 name> <file2 name>

# for more details, use the -u option
diff -u <file1 name> <file2 name>
 
PREVIOUS NEXT
Tagged: #command #compare #content #files
ADD COMMENT
Topic
Name
1+8 =