3 ms·
{ print $0 } is the default action if you don't specify one. Using "200" in quotes makes sense if you're looking for an exact string match; this will fail if t
by kazinator 8y ago
{ print $0 } is the default action if you don't specify one.
Using "200" in quotes makes sense if you're looking for an exact string match; this will fail if the datum is 0200, or 200.0.
- newscracker 8y agoMy guess is that the GP's example is to get all HTTP status 200 lines from a web server log file. In that case, a precise match for "200" is fine.