Am trying to parse the output from a local printer's status page, and am failing to get lookahead working when piping the value from a wget into grep.
This works fine and returns lots of matches:
wget -q -O- "http://10.0.0.99/status" | grep -E Helvetica
However this returns nothing
wget -q -O- "http://10.0.0.99/status" | grep -E Helv(?=etica)
Does lookahead work? I'm not sure if the '-E' is correct either...
Is there something I'm missing... ?
Log in to post a comment.