LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2004, 07:17 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,028

Rep: Reputation: 45
differences between files


Hi i have two files... The two files are similar except from the last column. How i can view the differences in two columns?
Thx
 
Old 11-15-2004, 07:26 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
Use the diff command.
 
Old 11-15-2004, 09:34 AM   #3
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Try this:
awk '{print $NF}' file1 >diff1
awk '{print $NF}' file2 >diff2
paste diff1 diff2
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what are the differences? LinuxPadawan Linux - General 10 07-27-2005 03:39 PM
AIDE found differences between database and files in dev directory!! ddaas Linux - Security 1 06-29-2005 06:17 AM
bash script to output only differences in two files czarherr Programming 4 11-08-2004 06:25 PM
Differences between files? kryptobs2000 Linux - Software 1 06-22-2004 04:28 PM
what are some differences between C and C++? Chooco Programming 9 06-07-2002 07:14 AM


All times are GMT -5. The time now is 10:01 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
Open Source Consulting | Domain Registration