Tagged Questions
0
votes
1answer
28 views
How do i diff two files from the web
i need some help on the command line.
I want to see the differences of 2 files that not in the local filesystem but on the web. So, i think if have to use diff, curl and some kind of piping.
...
0
votes
3answers
62 views
Can someone identify this unix command?
At my university, the output from our submitted code is being compared to a correct output using (I think) some unix command. The problem is I don't know what it is or what it means (I don't think ...
0
votes
1answer
77 views
script for finding difference between subfolders of two folders in unix
I have two folders named 'check' in two places. Both will have same folders but the files of each folder may differs. I want to run a script to find the difference between the folders with same name ...
3
votes
2answers
37 views
diff while ignoring patterns within a line, but not the entire line
I often have a need to compare two files, while ignoring certain changes within those files. I don't want to ignore entire lines, just a portion of them. The most common case of this is timestamps ...
0
votes
3answers
60 views
diff directories a and b. show only files in b, not in a
the title sumarises my question. given directories a and b, i want to be able to generate a list of files that are in b but not in a.
a normal diff does this, but it also shows files in a not in b:
...
0
votes
1answer
43 views
How to exclude multiple line patterns using diff?
I want to do a diff over two xml files but ignore 2-3 line patterns.
eg: Say I want to ignore availability & price while comparing the xml format below.
Here is what I have so far:
diff -I ...
0
votes
1answer
181 views
How to find duplicate lines across 2 different files? Unix
From the unix terminal, we can use diff file1 file2 to find the difference between two files. Is there a similar command to show the similarity across 2 files? (many pipes allowed if necessary.
Each ...
2
votes
3answers
31 views
recreating file from diff
How to create the original file from the diff, I am having one of the files and deleted the other unknowingly. Is there any tool to convert the diff output to 'ed' diff (diff -e output) format or ...
2
votes
6answers
58 views
Retrieving part of common content of the two texts
I really don't know how to proceed from the following. Suppose I have two files, file1 and file2. These files consist of a long list of two entries each of which have the same structure
A : some ...
5
votes
2answers
88 views
Ignore newlines with diff
I'd like to ignore newlines when I compare c source files. For example I want following two codes are reported they are same.
// codeA
int main(int argc, char *argv[])
{
// codeB
int main(int argc, ...
0
votes
1answer
105 views
unix diff to file
I'm having a little trouble getting the output of diff to write to file. I have a new and old version of a .strings file and I want to be able to write the diff between these two files to a ...
1
vote
3answers
1k views
Unix fastest way to tell if two files are the same?
I have a shell script in which I need to check if two files are the same or not. I do this a for a lot of files, and in my script this diffing seems to be the performance bottleneck.
Here's the ...
1
vote
1answer
61 views
In cvs diff I want to see author name and date of files having difference
How can I get the author name and date of the different files, when I do a cvs diff.
M using wincvs on windows 2.1.1.1(build 1). I can also do it on unix server through command line.
thx
2
votes
1answer
86 views
diff -I (uppercase 'i') not working when options are passed as variable
I'm writing a script to find out the diff between files using the GNU version of the diff command. Here I need to ignore the html comment <!-- and any patterns (provided as input through a file) ...
0
votes
1answer
97 views
Find multible missing lines in csv using diff
One part of my problem was solved with this answer:
Threadlink
, but an important part of my problem was unsolved!
After using
diff a.csv b.csv | grep -E -A1 '^[0-9]+d[0-9]+$' | grep -v '^--$' | sed ...