Questions tagged [sdiff]

Refers to the command used to merge two files interactively. It is part of GNU diffutils package.

The sdiff command merges two files and interactively outputs the results. It is one component of GNU diffutils package (usage reference).

22 questions
0
votes
1 answer

Running a diff from the two most recent versions of a page

I am trying to set up a bash script to download a web page once a day, then run a diff of the last two pages and send an alert if the pages are more than 15% different. I'm not really sure how to approach the selection of the two most recent…
Ikarian
  • 51
  • 2
  • 2
  • 4
0
votes
1 answer

Linux sdiff command cut output text

I have two files which I compare using sdiff command. Unfortunately it cuts filename, which is necessary for me. Command looks like that: sdiff -t ${build.fileListDir}/${build.fileList} ${build.dir}/git/${build.fileList} | grep '[|]' >…
Dariss
  • 1,258
  • 1
  • 12
  • 27
0
votes
2 answers

How to grep for "<|>" ? (either the larger-than or small-than sign)

How can I grep for lines that contains either the larger-than sign or the smaller-than sign in them? The following grep command returns nothing: grep "<\|>" sdiff.out Grepping, however, for just one of the signs at a time does return data from the…
user3306922
  • 25
  • 1
  • 7
0
votes
1 answer

Using diff/sdiff

I have one text file containing 78 numbers, and then I have another text file that contains 63 numbers that were pulled from the first file. Therefore, there are 15 numbers in text1 that doesn't exist in text2. How can I find out which ones these…
0
votes
1 answer

How can I configure sdiff as a merge tool for git?

I am still looking for a good command line (no GUI) git merge tool as I do not know vim or emacs. I found the following on how to use sdiff for merging, which seems pretty simple. I cannot seem to make sdiff work properly. I currently have the…
Technoh
  • 1,606
  • 15
  • 34
0
votes
1 answer

Issue with Comparing 2 files using SDIFF

I have a module that I am currently stuck on. I would like to seek your assistance on this. Let say I have a file with the following entries: ABC 123 ... <-- 1st occurence base on column 1 value CDE 456 ... DEF 234 ... ABC 234 ... <-- 2nd…
Ravenwolf
  • 27
  • 6
-2
votes
1 answer

Compare files from different folders

I would like to write a script that compares files from different folders; compare is done between different folder with the same filename. Eg Folder A: filename1, filename2, filename3 Folder B: filename1, filename2, filename3 desired Output,…
Jimbo
  • 13
  • 4
1
2