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
xiaoxiangzAsked:
Who is Participating?
 
braveheartConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.