/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

lanziani.com
| | thepugautomatic.com

I spent some time in encoding hell the other day, trying to read a UTF-8 encoded text file with osascript in a bash shell script. Despite its preference for the MacRoman encoding, AppleScript does...
2.7 parsecs

Travel
| |
| | 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...
2.0 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.5 parsecs

Travel
| |
| | pythonspeed.com

It is quite difficult to write correct shell scripts; you're much better off just using Python.
21.5 parsecs

Travel
|