• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

How to do this?

Under unix, I have text file contain records, each line is a record. I have both history
file and update file, if history file
contains:
a
b
c
update file contains
c
d
how can I merge together get a file
a
b
c
d
each letter stands for a line.
Thanks.
Shane
0
xiaoxiangz
Asked:
xiaoxiangz
1 Solution
 
braveheartCommented:
sort -u history update -o merged

You might have to restrict the sort to specific fields/columns in the history and update files. See "man sort" for details on how to do this.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now