LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-28-2007, 09:15 PM   #1
the-yikes
Member
 
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, 09:33 PM   #2
pbhj
Member
 
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, 10:01 PM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,971

Rep: Reputation: Disabled
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...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge lines in a file using sed arobic Programming 8 01-20-2012 03:11 PM
awk command to merge columns from two separate files into single file? johnpaulodonnell Linux - Newbie 4 01-23-2007 11:10 AM
merge avi with subtitle file ? norah_cobain Linux - Software 28 05-25-2006 06:42 PM
Is there a command to merge two files as two columns of one file? davee Linux - General 2 07-19-2005 11:52 AM
merge multiple lines of a single file into one line groverrajiv Linux - Newbie 4 05-26-2004 03:38 AM


All times are GMT -5. The time now is 06:46 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration