How do I use grep to generate - Ask Ubuntu


how generate list displays lowest numbers in file?

ex.

  1. list item 2476 jackie woodson :manager: :sales: :05/01/59: 110000
  2. list item 2000 jack wilson :director: :accounts: :04/19/55: 80000
  3. list item 7700 wilson ali :executie: :accounts: :08/30/56: 90000
  4. list item 3364 bill wilcocks :manager: :sales: :12/12/55: 65000

  5. list item 4290 neil o'bryan :executive: :accounts: :05/01/59: 100000

  6. list item 2000 wilson albert :chairman: :productions: :03/12/50: 125000

i want list show range between 60000 , 9000 , list using grep

i've tried

grep "[69]" .....$ filename

grep not numeric comparisons, , not tool use here. i'd use:

sort --field-separator=":" --numeric-sort --reverse --key=7 --ignore-leading-blanks filename | \     tail --lines=3  | \     sort --field-separator=":" --numeric-sort --key=7 --ignore-leading-blanks 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User