6 ms·
> "You're tasked with parsing a log file to return the IP addresses that appear at least 10 times, how would you approach this?" Out of curiosity, did anyone j
by bikezen 2y ago
> "You're tasked with parsing a log file to return the IP addresses that appear at least 10 times, how would you approach this?"
Out of curiosity, did anyone just reply with `awk ... | sort | count ... | awk`? Its certainly what I would do rather than writing out an actual script.
- twoparachute45 2y agoNobody has yet, but if they did I'd probably be ecstatic! We specifically tell candidates they can use any language they want. A combination of awk/sort/sed/count/etc is just as effective as a Python script!