Fermé

Quick shell script in linux

Problem description:

I have two sets of files in two separate directories. You need to write a script that will merge (line by line) the two files and output the new data into a 3rd new file in a new directory, you will also need to sort the data, remove duplicates from that line, and remove extra spaces so there is only one space between each item.

You need to do this with multiple lines and multiple files in the directories so its needs to be automated.

Example.

file A1

line 1 - aaa bb cccc mm

line 2 - aa bbb mm

file B1

line 1- dd o zzzzz 3 cccc

line 2- c o zzz mm

the new file that will be created

file C1

line 1- 3 aaa bb ccc ddd mm o zzzzz

line 2- aa bbb c mm o zzz

Thanks

Compétences : Linux, Script Shell

Voir plus : line problem, example shell script, aaa a, a1, shell script, script linux, ddd, ccc, c1, output script, write linux script, write script file, remove script, write linux shell, linux merge line, linux merge, file merge linux, data linux, quick data, linux problem , multiple linux, script merge, extra space, shell sort, sort problem

Concernant l'employeur :
( 0 commentaires ) United States

N° du projet : #1064577

13 freelance ont fait une offre moyenne de 30 $ pour ce travail

jeeves82

I can do this for you. Please check PM. Thanks!

30 $ USD en 0 jours
(39 Commentaires)
5.6
gasparch

Please see PM

35 $ USD en 1 jour
(25 Commentaires)
5.1
ivan381eu

I just finished this task on my server and got result just as you describe.

30 $ USD en 0 jours
(14 Commentaires)
4.9
brND

I can do this

30 $ USD en 0 jours
(17 Commentaires)
4.5
gangabass

I can do this job for you. See PM for details.

30 $ USD en 0 jours
(33 Commentaires)
4.3
slynux

I am the author of a best seller Linux Shell Scripting book. I can write the script in 10 minutes. Please see PM.

30 $ USD en 0 jours
(4 Commentaires)
3.8
phankhanh

Please check your PMB.

30 $ USD en 0 jours
(2 Commentaires)
2.5
uldisp

I can provide such bash script.

30 $ USD en 0 jours
(2 Commentaires)
1.0
postep2

It is not very difficult. I am ready to work

30 $ USD en 0 jours
(0 Commentaires)
0.0
ppierog

I can do it in py

30 $ USD en 0 jours
(0 Commentaires)
0.0
shreyanshjogi

we are hell ready

30 $ USD en 0 jours
(0 Commentaires)
0.0
alphaomicron

I can make you a script like this, please see PM.

30 $ USD en 1 jour
(0 Commentaires)
0.0
bigben2011

It is easy. I can do it.

30 $ USD en 1 jour
(0 Commentaires)
0.0