Tagged: grep
2 posts · browse all tags
-
The grep Benchmark Trap: Why Your Search Looks 100 Times Faster Than It Is
GNU grep searched a 105 MB file in 2 ms when I benchmarked it, and 263 ms when I piped the output. The reason is a deliberate shortcut, and it will silently ruin any grep timing you run with hyperfine.
-
Text Processing for Network Engineers Part 2: grep and Searching Configs and Logs at Scale
grep past -i and -v: context windows for pulling whole interface blocks, -o for extraction, -P for lookaheads, and recursive search across a folder of device config backups to find which boxes still reference a decommissioned server.