Write a linux shell program to perform compare two files
To compare two files
Code:
clear
echo -----------------------------------
echo '\tCompare two files'
echo -----------------------------------
echo Enter the name of the First file
read first
echo Enter the name of the Second file
read second
cmp $first $second
Output:
-----------------------------------
Compare two files
-----------------------------------
Enter the name of the First file
satheesh
Enter the name of the Second file
ex1
satheesh ex1 differ: byte 1, line 1
Leave a Comment