LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-12-2009, 04:11 AM   #1
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Rep: Reputation: 15
Question diff output meaning


Hi,

I have been searching both in google and LQ but just couldn't get any, hope my question is never answered before

When I use
Quote:
diff fileA fileB
I got output like this:

Quote:
947,951c947,950
<
<
<
--
>
>
>

1039,1054d1037
<
<
1061a1045,1052
>
>
>
1155d1145
<
<
1294a1182,1183
>
>
Could anyone shed some light about the meaning of:
comma
a
c
c
in the output of diff ?

Thanks a million for the help, that's make a great help to me.
 
Old 10-12-2009, 04:51 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by sloganyart View Post
Hi,

I have been searching both in google and LQ but just couldn't get any, hope my question is never answered before

When I use


I got output like this:



Could anyone shed some light about the meaning of:
comma
a
c
c
in the output of diff ?

Thanks a million for the help, that's make a great help to me.
Code:
$ man diff
 
Old 10-12-2009, 07:52 AM   #3
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Original Poster
Rep: Reputation: 15
I'm not sure the man diff you got is it same with mine, but as far I can tell, the man page didn't tell us the meaning of the format of the diff output. (I'm referring to Centos 5.3 here)

What I want to know is the meaning of comma, a, c, d in the output which sit among the digits. Thanks.

Last edited by sloganyart; 10-12-2009 at 07:53 AM.
 
Old 10-12-2009, 08:06 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Google is your friend: ... http://www.linuxselfhelp.com/gnu/dif...er/diff_3.html


I am surprised that the man pages don't give more info on output formats....
 
Old 10-13-2009, 01:32 AM   #5
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Original Poster
Rep: Reputation: 15
Smile

Thanks pixellany, your help is really appreciated

I guess my searching skill in google need to be sharpen a little bit more..
 
  


Reply

Tags
diff, format, output


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
? meaning of /bin/ls: .: Input/output error JesseMor Linux - Newbie 11 10-28-2008 08:27 PM
Is there anyway to take a standard diff and get a vimdiff output? kinasz Linux - General 4 02-05-2008 05:53 PM
Meaning of text color in the console? (ls output for example) EtherGhost Linux - General 3 12-31-2006 12:59 AM
How can I use diff to difference between programs output? nadavvin Linux - General 4 08-05-2006 04:35 AM
bittorrent: meaning of the output of btdownloadheadless --spew bnj Linux - Software 2 03-21-2006 03:06 AM


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

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