This file contains about 18000 lines of text...here are the first 10.
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
I need to create a command pipeline to solve this problem. First placing a bash shebang line then the actual pipeline.
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 Descending order (highest to lowest value) 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 ~/text1.txt
Does anyone know what this LONG command could look like?
I think it would begin like this: grep -i "^[aeiou] sort -r -k 3 | head -37 | tail -23
The command is not correct, anyone have any ideas?