LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find the difference in two shell script files.. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-difference-in-two-shell-script-files-929090/)

pkanuru 02-13-2012 06:10 AM

How to find the difference in two shell script files..
 
Hi,

Please let us how to find the difference in two unix shell script files..

acid_kewpie 02-13-2012 06:16 AM

use the diff command

wpeckham 02-13-2012 01:23 PM

Or
 
If you want a 'side by side' view try sdiff. (Works best with wide screen/terminal and options of your choice. See the MAN page.)

Geek255 02-13-2012 03:25 PM

I use diff -u and patch to get the differences and apply changes to my scripts

ps: diff -y does the same as sdiff

frankbell 02-13-2012 10:04 PM

The unofficial leader of my LUG swears by meld. He's not a big fan of GUI front-ends for command line programs, but for meld he makes an exception.

Satyaveer Arya 02-14-2012 03:02 AM

You can use either diff or cmp command.


All times are GMT -5. The time now is 04:01 PM.