Computing.Net > Forums > Unix > Merging two files in Specific Manner

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.

Merging two files in Specific Manner

Reply to Message Icon

Name: sbaheti
Date: September 1, 2009 at 13:06:36 Pacific
OS: Macintosh
CPU/Ram: 2 GB
Subcategory: General
Comment:

HI

I need a unix script to merge two files in a specific
manner
Eg:
File 1
1
2
4
5


File 2
3
5

Final output file looks like
1
2
3
4
5
6

Please respond ASAP....
Thanks in advance




Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: September 1, 2009 at 16:36:37 Pacific
Reply:

sort -u File1 File2 > OutputFile

Please send a reply, if you solved the problem !!!


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Merging two files in Specific Manner

trouble merging two files with awk www.computing.net/answers/unix/trouble-merging-two-files-with-awk/7937.html

Merging two data files www.computing.net/answers/unix/merging-two-data-files/7293.html

find files in specific date www.computing.net/answers/unix/find-files-in-specific-date/4708.html