Hi everyone, I need some help! I know that this is a very simple little problem but I seem to be stuck. I was just wondering if you could show me the right way.
I basicly have to write a single line of commands (using piping) to do the following:
From the file data.txt, select all of the lines that
contain at least six consonants
and have five digits in the fifth column.
Sort these lines in reverse order according to column 3, then
select lines 65 through 87. Finally, put these lines in
normal order according to column 1 and write them to the file
output.txt (overwrite any data already in that file).
What I have right now (missing some things):
grep -i ^[^a,e,i,o,u] * [?????]* | sort -r | head -87 | tail -64 | sort > output.txt
any help would be great.
Thanks