Microtime in bash: sub-second precision
Post #8 in this bash benchmark series, measuring the speed of common bash operations.
Post #8 in this bash benchmark series, measuring the speed of common bash operations.
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.
Every end of the month, as I spend several hours getting on top of all my receipts, expenses and invoices, scanning barely legible paper tidbits with my phone, I’m thinking to myself, surely there must be a better way? I mean, we are 2022, after all?
I have been working on GDPR-related issues recently, and I need to vent a little. While it might be a good thing that the privacy concerns, that led to GDPR, were raised by lawyers, unfortunately the implementation was left to lawyers, too. Let me rant first and talk about a solution afterwards.
Post #7 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #6 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #5 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #4 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #1 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #2 in this bash benchmark series, measuring the speed of common bash text manipulations.
Post #3 in this bash benchmark series, measuring the speed of common bash text manipulations.
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 talking about tools like cut, awk, tr, sed, sort, …