Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-28-2007, 08:15 PM   #1
Registered: Jan 2007
Posts: 151

Rep: Reputation: 30
File merge frustration!

Hi All,
Okay what i'm about to ask is an insanely basic question so please don't shoot me down. i'm not really able to remember how to use sdif to merge two text files, or any of other files for that matter!

Lets say i have two files in the same directory like file_a and file file_b. How do it merge them

Any help would be appreciated.

It's taken me 15 minutes + to type this!

The Yikes
Old 04-28-2007, 08:33 PM   #2
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
I use kdiff3 for diff-ing and merging.
Old 04-28-2007, 09:01 PM   #3
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,211

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
That depends on how you define "merge."
If you just want to put them together: cat file1 file2 > newfile
If you want to look at the differences and then selectively merge parts of them, then something like vimdiff might be what you want. diff(1) is useful for looking at the differences between two files...


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
Merge lines in a file using sed arobic Programming 8 01-20-2012 02:11 PM
awk command to merge columns from two separate files into single file? johnpaulodonnell Linux - Newbie 4 01-23-2007 10:10 AM
merge avi with subtitle file ? norah_cobain Linux - Software 28 05-25-2006 05:42 PM
Is there a command to merge two files as two columns of one file? davee Linux - General 2 07-19-2005 10:52 AM
merge multiple lines of a single file into one line groverrajiv Linux - Newbie 4 05-26-2004 02:38 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:53 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