Skip to content

lancerobinsonDOTcom

Memory Dump

Categories

  • cisco
  • grep
  • hp
  • Linux
  • logrotate
  • Maps
  • perl
  • php
  • pscp
  • python
  • Sports
  • Uncategorized

Recent Posts

  • Learning Python Part 1
  • HP A5500 Bridge-Aggregation LACP Configuration
  • Python Notes
  • Display IP Address of users browser
  • Best Sports Trip Weekends 2015

Category: grep

Counting lines starting with a certain string

grep '^your_word' /path/to/file | wc -l

[highlighter line=0]

Posted on 2015-03-122015-03-12Categories grep, LinuxLeave a comment on Counting lines starting with a certain string
Proudly powered by WordPress