From the file ~unx122, I am to select all of the lines that contain at least 6 characters and have numbers starting with a digit less than 5 in the second column. Sort these lines in reverse order according to column 4, and then select lines 11 through 74. Finally put these lines in normal order according to column 1 and write them to a file. The ~unx122 file has hundreds of file inside of it this is what some of it looks like shorter version of course:
lengths 23343 14262 4419 11094 31311
clowning 13143 9874 9596 11981 1793
obedient 400 13441 22222 17204 5609
postman 34567 67845 45633 19177 31313
carved 24680 3456 76543 8989 11001
earths 22112 19262 34891 7890 5555
I am have problems sorting the forth column in reverse order, I know that I have to use sort with -nr, but it's not working and now I am confused....Can anyone help me?
Thanks
Confused with Unix