LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   File merge frustration! (https://www.linuxquestions.org/questions/slackware-14/file-merge-frustration-549823/)

the-yikes 04-28-2007 08:15 PM

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

pbhj 04-28-2007 08:33 PM

I use kdiff3 for diff-ing and merging.

rworkman 04-28-2007 09:01 PM

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...


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