Benchmark: cut characters in bash • 25 Mar 2022
Post #1 in this bash benchmark series,
measuring the speed of common bash text manipulations.
Bash benchmarks • 24 Mar 2022
When writing bash scripts, one needs to find ways to do things that aren’t built in to bash. String manipulation like lowercase conversion, parsing, removing whitespace… all use tools/binaries built-in to the OS, but not in the language itself. I’m...
“Bashful Thinking”: a newsletter for bash scripting enthusiasts • 28 Jul 2020
I’ve decided to start a new email newsletter about my favourite tech topic: bash/shell scripting. It’s something I’ve become quite proficient in during the years, and I still discover new tricks, tools or applications every day. So I will bundle...
Calculate hit rate from a log file • 21 Oct 2004
You have a huge file that contains one line per request/transaction. Some lines are of one type (e.g. ‘HIT’), some of another (e.g. MISS). Let’s say you want to calculate the hit-rate, but as fast as possible. We take a...