Skip to main content
deleted 145 characters in body
Source Link
Costas
  • 15k
  • 24
  • 38

For noted conditions is easy to go through all numbers need

grep -Ec '^[0-9]+\s+([6-9]|1[0-9])\b'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l

For noted conditions is easy to go through all numbers

grep -Ec '^[0-9]+\s+([6-9]|1[0-9])\b'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l

For noted conditions is easy to go through all numbers need

grep -Ec '^[0-9]+\s+([6-9]|1[0-9])\b'
added 8 characters in body
Source Link
Costas
  • 15k
  • 24
  • 38

For noted conditions is easy to go through all numbers

grep -Ec '\s'^[0-9]+\s+([6-9]|1[0-9])\s'\b'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l

For noted conditions is easy to go through all numbers

grep -Ec '\s([6-9]|1[0-9])\s'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l

For noted conditions is easy to go through all numbers

grep -Ec '^[0-9]+\s+([6-9]|1[0-9])\b'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l
Source Link
Costas
  • 15k
  • 24
  • 38

For noted conditions is easy to go through all numbers

grep -Ec '\s([6-9]|1[0-9])\s'

Sure same can be done with sed

sed -nr '
    s/\s+/\n/
    /[[:blank:]]+[0-9]/D
    /([6-9]|1[0-9])\n/P
    ' | wc -l