LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2014, 12:29 AM   #1
literaturedevourer
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
difference between the contents of the two files


Hi all,
Is there any way to print the difference between the contents of the two files using pipes and grep command?
 
Old 10-29-2014, 12:33 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

probably, but it would be much easier to use the diff command.

Evo2.
 
1 members found this post helpful.
Old 10-29-2014, 03:09 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#1, @literaturedevourer : Welcome to LQ.

'diff' examples, post #2 here ...
http://www.linuxquestions.org/questi...-4175523002/#2
 
  


Reply



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
contents and explanation of files in /etc Lsatenstein Linux - Software 2 12-27-2012 01:40 PM
Mail only files with contents kais1 Linux - Newbie 1 06-29-2011 02:55 AM
Editing contents of 8 files at once mmahulo Linux - Newbie 7 12-22-2008 04:07 AM
.rar files versus .iso files the difference? dolphans1 Mandriva 14 01-31-2005 09:33 AM
Deleting contents of files. Road Linux - General 2 10-03-2002 06:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration