Bash
Posts with category: bash
12 posts
- Microtime in bash: sub-second precision • 15 Dec 2022
Post #8 in this bash benchmark series,
measuring the speed of common bash operations.
- Using bashew in GitHub Actions • 15 Oct 2022
GitHub Actions, used in countless CI/CD setups, are a good example of the ubiquity of bash scripting. Most of the run: lines in an Action YML document are nothing but (a sequence of) bash command lines.
- Benchmark: hash functions • 19 Apr 2022
Post #7 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- Benchmark: MacOS tr vs GNU gtr • 18 Apr 2022
Post #6 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- Benchmark: slugify text in Bash • 15 Apr 2022
Post #5 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- Benchmark: romanization in bash • 08 Apr 2022
Post #4 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- Benchmark: trimming whitespace in bash • 25 Mar 2022
Post #3 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- Benchmark: lowercase conversion in bash • 25 Mar 2022
Post #2 in this bash benchmark series,
measuring the speed of common bash text manipulations.
- 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...