Skip to main content
shorter better etc
Source Link
steve
  • 22.3k
  • 5
  • 53
  • 79

Another approach (thanks to Archemar + kos for avoiding use of deprecated egrep and using -c)

egrepgrep -cE '^.{28}04' data1.txt | wc -l

Another approach

egrep '^.{28}04' data1.txt | wc -l

Another approach (thanks to Archemar + kos for avoiding use of deprecated egrep and using -c)

grep -cE '^.{28}04' data1.txt
Source Link
steve
  • 22.3k
  • 5
  • 53
  • 79

Another approach

egrep '^.{28}04' data1.txt | wc -l