These are the slides, links and notes for my presentation “Scripting Bash” at MacSysAdmin 2017 in Göteborg.
You can find the entire Presentation as a Keynote document here.
You can find the session’s video here: MacSysAdmin 2017 Session Documentation page (Direct link to video)
List available shells on macOS: cat /etc/shells
Change user shell: chsh -s /path/to/shell
Other Shells
XKCD:
General Links
- Shell Scripts Matter – Thibaut Rousseau: main inspiration for this talk
- launchd
- outset
- “Packaging for Apple Administrators” by Armin Briegel
- Where PATHs come from
- TLDP: Quoting
- Shell Parameter Expansion
- ShellCheck
- ssh-installer
- Terminal-Finder Interaction contains some examples on how to integrate AppleScript/
osascript
withbash
- List of Python MacAdmin Tools – Tim Sutton
Git and Github
- Official git documentation, including the free book “Pro Git” by Scott Chacon and Ben Straub (iBooks)
- Try Git Tutorial (by GitHub) Nice broswer based interactive tutorial
- GitHub Guides
- Think Like (a) Git
- Git Section on Free Programming Books
Books
Shell and Terminal
- “Learning Unix for OS X: Going Deep With the Terminal and Shell” by Dave Taylor, Amazon US UK DE
- “Take Control of the Mac Command Line with Terminal” by Joe Kissell, iBooks, Amazon US UK DE
- Scripting OS X: Terminal Primer
Bash Scripting
- “Classic Shell Scripting” by Arnold Robbins and Nelson H. F. Beebe, iBooks, Amazon US UK DE
- “Learning the bash Shell: Unix Shell Programming” by Cameron Newham, iBooks, Amazon US UK DE
- “bash Cookbook: Solutions and Examples for bash Users” by Carl Albing, JP Vossen, Cameron Newham, iBooks, Amazon US UK DE
- also, check out the
bash
section on free programming books
AppleScript
- “AppleScript 1-2-3” by Sal Soghoian, Bill Cheeseman, iBooks, Amazon US UK DE
- AppleScript Language Guide (Apple Developer Documentation)
Python
- Dive into Python
- Python section on Free Programming Books
- “Learning Python” by Fabrizion Romano (free eBook)
- “Learning Python: Powerful Object-Oriented Programming” (O’Reilly) by Mark Lutz, iBooks, Amazon US UK DE
Swift
- Apple’s Swift Playgrounds for iPad: very basic, but entertaining entry level coding
- The Swift Programming Language (Apple), free iBook
- “Swift Programming: The Big Nerd Ranch Guide” by Matthew Mathias, John Gallagher, Amazon US UK DE
- “Hacking with Swift” by Paul Hudson, free online or buy on iBooks