Computing.Net > Forums > Unix > newbie to unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

newbie to unix

Reply to Message Icon

Name: pradeep desh
Date: February 10, 2005 at 00:45:13 Pacific
OS: sun os 5.8
CPU/Ram: 256 MB
Comment:

Hello,
Which is the best way to merge files.




Sponsored Link
Ads by Google

Response Number 1
Name: frank dolivka
Date: February 10, 2005 at 07:39:35 Pacific
Reply:

cat file1 file2 > file.new
or
cat file2 >> file1

cheers Frank

Regards
Frank Dolivka
No Risk No Fun


0

Response Number 2
Name: Jim Boothe
Date: February 10, 2005 at 07:58:15 Pacific
Reply:

That would append two files, but Pradeep wants to logically merge files.

See the man page for merge (man merge):

merge combines two files that are revisions of a single original file.

An overlap occurs if both file1 and file3 have changes in the same place. merge prints how many overlaps occurred, and includes both alternatives in the result.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: newbie to unix

Cannot telnet to Unix Box www.computing.net/answers/unix/cannot-telnet-to-unix-box/4976.html

newbie to unix www.computing.net/answers/unix/newbie-to-unix/6729.html

help with script - I am new to Unix www.computing.net/answers/unix/help-with-script-i-am-new-to-unix/2638.html