Answer» This is a very hard UNIX command which I could not perform..........here it is:
The file ~unx122/public/data.txt contains over 18,000 lines of text. Here are the first ten lines of the file:
pagination 20657 2740 28416 31090 18145
shiner 1695 2507 9964 14512 13122
cool 29210 23832 22861 25037 18722
entertain 16186 23873 5049 3781 15735
sandwiches 9407 61 10817 7342 18224
sustenance 27174 8344 331 18238 25000
humanitarian 29733 13594 5573 24760 20213
Gus 10371 20643 22256 28933 7187
promoting 24678 31046 5759 7005 29626
ethereal 4963 15542 12202 23911 31595
Each LINE contains a word and five numbers, each separated by spaces. There are no spaces or punctuation MARKS in any of the words; each word consists of only upper- and lower-case letters. All of the numbers are whole numbers (no decimals and no negative numbers). There are no leading zeros (extra zeros added to the start of the numbers).
*****************************************************
From the file ~unx122/public/data.txt, select all of the lines that have a word in column one that starts and ends with vowels and have values between 1000 and 9999 in the third column.
Sort these lines in reverse order according to column 3, then select lines 15 through 37. Finally, put these lines in normal order according to column 1 and write them to the file ~/uli101_a2_output.txt (overwrite any data already in that file).
I have to create a command pipeline to perform this task, and an appropriate bash shebang line, then the command pipeline.
Anyone KNOW what the command could be?
|