Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #count number of occurrences of "needle" (\b signifies a word boundary)
- grep -o '\bneedle\b' filename | wc -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement