Solved

How to do this?

Posted on 1998-06-24
1
210 Views
Last Modified: 2012-05-04
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
Comment
Question by:xiaoxiangz
1 Comment
 
LVL 3

Accepted Solution

by:
braveheart earned 20 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now