I need a Linux script written [alpha numerical sentance sort]
- or -
Post a project like this3146
£25(approx. $31)
- Posted:
- Proposals: 5
- Remote
- #877967
- Awarded
Description
Experience Level: Intermediate
Estimated project duration: 1 day or less
Good day all,
I am looking for someone to pull together a script for me please. Details are as follows:
Target Operating System : Linux
Language : sed / awk / perl
The script needs to read in a multi line file a sample of the “input format” is provided below, this is an extract from a bespoke database the file can therefore be hundreds to hundreds of thousands of lines long.
The script needs to sort each sentence alpha numerically, with each word in each sentence also ordered alpha numerically.
Each line has the potential to contain between one and sixty words and numbers.
The output from the sort should appear as per the “output format” below.
“input format”
WORD 1
WORD 1 DOG BIG
7 KEYBOARD KEYWORD UNIQUE
ABLE ALL PLAY KNOWLEDGE
LIP LIPS LINCON LEMONADE 4
LEFT LEAVE LOST LEVEL
“output format”
1 WORD
1 WORD BIG DOG
4 LEMONADE LINCON LIP LIPS
7 KEYBOARD KEYWORD UNIQUE
ABLE ALL KNOWLEDGE PLAY
LEAVE LEFT LEVEL LOST
Regards Richard
I am looking for someone to pull together a script for me please. Details are as follows:
Target Operating System : Linux
Language : sed / awk / perl
The script needs to read in a multi line file a sample of the “input format” is provided below, this is an extract from a bespoke database the file can therefore be hundreds to hundreds of thousands of lines long.
The script needs to sort each sentence alpha numerically, with each word in each sentence also ordered alpha numerically.
Each line has the potential to contain between one and sixty words and numbers.
The output from the sort should appear as per the “output format” below.
“input format”
WORD 1
WORD 1 DOG BIG
7 KEYBOARD KEYWORD UNIQUE
ABLE ALL PLAY KNOWLEDGE
LIP LIPS LINCON LEMONADE 4
LEFT LEAVE LOST LEVEL
“output format”
1 WORD
1 WORD BIG DOG
4 LEMONADE LINCON LIP LIPS
7 KEYBOARD KEYWORD UNIQUE
ABLE ALL KNOWLEDGE PLAY
LEAVE LEFT LEVEL LOST
Regards Richard
Richard B.
100% (3)Projects Completed
4
Freelancers worked with
3
Projects awarded
55%
Last project
17 Jun 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies