/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

thepugautomatic.com
| | collin.blog

I wrote myself this small template as a starting place for when I'm writing shell scripts. I just wanted something basic with enough structure to remind me how I like to do things. I thought maybe it would be helpful for other people who don't write shell scripts too often but want to them to...
1.7 parsecs

Travel
| |
| | purefun.dev

When in doubt, always consider adding set -e and cd $(dirname $0) at the beginning of a shellscript. Why? Let's find out: When to use cd $(dirname $0) $0 is the currently executing script, so what the command does is to change current directory into the same directory as where the script resides. If you don't do this, any references to other files next to your script will be incorrect if you run the script from another directory.
2.4 parsecs

Travel
| |
| | seanmcp.com

Writing a script to read the package.json for you
3.2 parsecs

Travel
| |
| | bijanebrahimi.github.io

[AI summary] The post explains shell scripting fundamentals and provides a guide to using Bats, a Bash automated testing framework, with examples.
21.5 parsecs

Travel
|