10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am using the below command to get the diff output of two files.
Here in the output file, I wish to add line number in front of each line starting position.
Please suggest the diff options or some command line utilities.
diff -y file1.txt file2.txt --width=300 > diff_f1_f2_300.txt... (5 Replies)
Discussion started by: k_manimuthu
5 Replies
2. UNIX for Dummies Questions & Answers
Platform :Oracle Linux 6.4
Shell : bash
In the below sample, although the lines in a.txt and b.txt are jumbled up, there is only one difference : b.txt has an extra line NETHERLANDS
$ cat a.txt
SPAIN
NORTH KOREA
PORTUGAL
GERMANY
SYRIA
$
$
$ cat b.txt
GERMANY
NORTH KOREA
SPAIN... (6 Replies)
Discussion started by: John K
6 Replies
3. Shell Programming and Scripting
I have a csv file that I am trying to edit. I need to remove any comma that is touching a letter. I used this command to find them.
grep , moz_places_good.csv | head -n 10 | grep ,I would think I could use some form of this to just delete the commas and not the letter before it. Just not sure... (5 Replies)
Discussion started by: cokedude
5 Replies
4. Shell Programming and Scripting
Hello Guys,
I request anyone to do me a small help in using diff command for following.
I am trying to compare two files for content and wish to keep the content after the comparison (The resultant file can't be blank)
However, the first lines would be different in both files and I need diff... (2 Replies)
Discussion started by: rockf1bull
2 Replies
5. Shell Programming and Scripting
hi there
Strange title? Well yes...it is strange..."touch" is driving me nutts! Trying to set the access / modified date by a bash script. For a certain time everything works well with all files. After point x the code works only for some files, for others it doesn't. After looking for the ... (4 Replies)
Discussion started by: blah0
4 Replies
6. UNIX for Dummies Questions & Answers
So, I think this is a really stupid question, but I'd like to see if I am right.
If the following commands are entered:
umask 000
touch file1
umask111
touch file2
...nothing should happen...right? The touch operation isn't going to apply any changes from umask to file1 (and same to... (1 Reply)
Discussion started by: Midwest Product
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have a small problem and would be happy if someone could help me to find a solution:
A machine ("server") makes backups of different computers ("clients") using rsync. Users and groups are keept, so that it's possible to copy them back to the client if required. The number of groups... (3 Replies)
Discussion started by: tracer
3 Replies
8. Shell Programming and Scripting
i have 2 file named test1,test2
contents of test1:
1
2
3
---------------------------
contents of test2:
1
2
3
4
5
--------------------------------------------------------
my desired o/p should be:
diff test2 test1
4 (5 Replies)
Discussion started by: ali560045
5 Replies
9. Programming
i need to create a file which contains (/) character.
Any help to do this (1 Reply)
Discussion started by: axes
1 Replies
10. Shell Programming and Scripting
Hi,
Is there any way to achieve diff of two files line by line.
for eg,
a.txt
a
b
c
d
e
b.txt
f
g
h
i
j (1 Reply)
Discussion started by: Omkumar
1 Replies
MELD(1) General Commands Manual MELD(1)
NAME
meld - Visual diff and merge tool for the GNOME Desktop
SYNOPSIS
meld [options]
meld [options] FILE1
meld [options] DIR1
meld [options] FILE1 FILE2 [FILE3]
meld [options] DIR1 DIR2 [DIR3]
DESCRIPTION
Meld is a graphical diff viewer and merge application for the Gnome desktop. It supports 2 and 3-file diffs, recursive directory diffs,
diffing of directories under version control (Arch, Bazaar, Codeville, CVS, Darcs, Git, Mercurial, Monotone, RCS), as well as the ability
to manually and automatically merge file differences.
OPTIONS
--auto-compare, -a
Automatically compare all differing files on startup.
--diff FILE1|DIR1 FILE2|DIR2 [FILE3|DIR3]
Create a diff tab for the given files or directories. Note that "meld --diff FILE1 FILE2" is functionally equivalent to "meld FILE1
FILE2". However, the --diff argument can be given multiple times for one invocation of meld which allows the user to automatically
initiate multiple diffs when meld starts. See examples below.
--help, -h
Print application help and usage.
--LABEL=<label>, -L <label>
Set application window title to <label>.
--version
Print application version and exit.
EXAMPLES
meld
Run meld without initiating a diff.
meld FILE1
Initiate a diff between FILE1 and the version-controlled copy of FILE1.
meld DIR1
Initiate a recursive diff between DIR1 and the version-controlled copy of DIR1.
meld FILE1 FILE2
Initiate a diff between FILE1 and FILE2.
meld FILE1 FILE2 FILE3
Initiate a 3-way diff between FILE1, FILE2, and FILE3.
meld DIR1 DIR2
Initiate a recursive diff between directory DIR1 and DIR2.
meld DIR1 DIR2 DIR3
Initiate a recursive 3-way diff between directory DIR1, DIR2, and DIR3.
meld --diff FILE1 FILE2 --diff FILE3 FILE4
Initiate a diff between FILE1 and FILE2, and a separate diff between FILE3 and FILE4.
BUGS
If you find a bug, please report it at https://bugzilla.gnome.org/buglist.cgi?product=meld or mail a description of the issue to meld-
list@gnome.org.
AUTHORS
See the AUTHORS text file in meld's source code (http://git.gnome.org/browse/meld/tree/AUTHORS).
26 Sept 2010 MELD(1)