doyenz Interview Question: Scan a file and count how man... | Glassdoor

Find your next job here

Interview Question

Engineering Interview Bellevue, WA

Scan a file and count how many lines contain the world

  "something". Write in 3 programming languages.

Interview Answer

1 Answer


cat "filename" | grep something | wc -l

yokoyvonne on Jan 3, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.