4 ms·
It's often easy to start with tools such as cut, sed, grep, tr, etc., but as you start building a one-liner (or short script) you realise that what you've cobbl
by dredmorbius 8y ago
It's often easy to start with tools such as cut, sed, grep, tr, etc., but as you start building a one-liner (or short script) you realise that what you've cobbled together could all be expressed in awk.
You can shell out if necessary:
cmd = "whois " $url
while ( cmd | getline ) {
# stuff
}
close(cmd)
Also: coprocesses.