/explore
|
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... |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
pythonspeed.com
It is quite difficult to write correct shell scripts; you're much better off just using Python. |
|
| | | |||