Difficult Pipeline task

  • netmaster3
  • Born
  • Born
  • netmaster3
  • Posts: 1

Post 3+ Months Ago

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?
  • Casey
  • Graduate
  • Graduate
  • User avatar
  • Posts: 124
  • Loc: Iowa

Post 3+ Months Ago

Homework problem??

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 62 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.