Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-01-2004, 08:58 AM   #1
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Rep: Reputation: 30
Diff compare 2 files


I am trying to get to grips with diff

I read the manaul but I want to show the difference only between two files

I use diff -u <file1> <file2>

but it would be easier for me to just see what is different in <file2>

Is this possible or do I need to use something else?

Dave T.
Old 11-01-2004, 10:01 AM   #2
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
diff -y
this should give u output in two columns, side by side for file1 and file2. Its all in the manual.
Old 11-01-2004, 11:00 AM   #3
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Thank you very much


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compare 2 files? linuxhippy Slackware 6 03-26-2005 02:54 AM
Compare two cvs files.... trey85stang Linux - General 3 10-23-2004 09:05 PM
Using diff to compare file with common lines, but at different line numbers jimieee Linux - Newbie 3 05-10-2004 08:26 AM
to compare the contents of 2 files MaleWithBrains Linux - Newbie 3 01-27-2004 07:39 PM
How Compare FS/dirs - can't use 'diff'? MikHud Linux - General 2 05-07-2002 08:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration