This spring, I gave a talk on one of my favorite languages called BASH, the Bourne Again SHell. The workshop slides and some batch scripting examples can be found on my github here.
What is BASH?
BASH is a unix shell and command language that reads from standard input or from a file. BASH allows you to interact with the filesystem and run/manage other programs through the command line. File system navigation and manipulation (coping, moving, deleting) isn't neccesarily easier in BASH, but once you practice using it it is way faster then a graphical user interface. The talk that I gave focused mainly on the basic commands, and working with large quantities of files.
Example Scripts from Talk
A script that makes script files with boiler plate and input validation.
1 |
|
A script that creates date formatted directories.
1 |
|
An example of both ways to create functions in bash.
1 |
|
resulting in the following:
1 | inside of a |