by mehrdadn · 8y ago · 0 comments
Interesting... to me the value (er, a value) is that you can write
/PATTERN/ { print $3 }
instead of import re, sys
for line in sys.stdin:
if re.search('PATTERN', line):
print(line.split()[2])
And another value is that it's more likely to be preinstalled than Python.