Bash / SED script to sort two files

Completed Posted Nov 27, 2007 Paid on delivery
Completed Paid on delivery

Hello, I need a Bash script to loop through two files and change a reference on each line in one of them.

This is for making a custom Linux install that fits on one disk. I will also combine a kickstart file and some other commands but that is not in the realm of this project.

To make it more understandable of what I want I will include parts of both files.

File 1 hal-0.5.2-2.fc4.1 tcsh-6.14-1.fc4.2 cyrus-sasl-plain-2.1.20-6 [url removed, login to view] iptraf-2.7.0-15.FC4.1 File 2 cyrus-sasl-plain setroubleshoot system-config-date system-config-kdump My theory is that this first script will make all packages optional (off) so the second script only has to turn them on. So to the second script: The second script will loop through File 1 and find the corresponding reference line in File 2 and change type="optional" to type="default". Looking at the contents of both files there may be some string manipulation needed. File 1 - cyrus-sasl-plain-2.1.20-6 (one line) File 2 - cyrus-sasl-plain

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Bash Linux

Engineering Linux MySQL PHP Software Architecture Software Testing

Project ID: #3511513

About the project

6 proposals Remote project Active Dec 5, 2007

Awarded to:

adhd

See private message.

$21.25 USD in 14 days
(15 Reviews)
4.0

6 freelancers are bidding on average $27 for this job

stevenfvw

See private message.

$21.25 USD in 14 days
(13 Reviews)
3.4
ghostdog74

See private message.

$12.75 USD in 14 days
(19 Reviews)
2.9
ashrar

See private message.

$21.25 USD in 14 days
(6 Reviews)
2.9
vw6770380vw

See private message.

$76.5 USD in 14 days
(0 Reviews)
0.0
Dubal

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0