Scripting with Bash and Python - 2011
Overview
The compact course on scripting in Bash and Python will take place from
- May 2-13, 9:30-13:30 (including breaks).
We will have 4 days of Bash, and 5 days of Python. In the first week, there will be no course on Thursday.
The course consists of lecturing parts (roughly 9:30-11:30) and tutorials to (roughly 11:30-13:30) allow you to practice what you've learned. If you have any questions, don't hesitate to contact me.
In the following, you can find the course materials and additional information:
Announcements
- There will be no course on Thursday, May 5!
- We will start Python on Monday in the second week.
Requirements
As the course is rather interactive, please bring your laptop (preferably with Linux). You can then just try things out and practice right away.
For Bash
- Bash as shell (*1)
- Collection of standard tools
- gnuplot
- If you are using Windows, we recommend to install cygwin full/extended
For Python
- Python 2.6, as not all packages have been ported to Python 3.X (*1)
- Packages:
- Scipy (which should include IPython as interactive Python shell; if not, get IPython); see [1]
- PyLab/Matplotlib
- Gnuplot
(*1): Required for the first day each.
Slides
- The slides for Monday, May 2, Bash Day 1
- The slides for Tuesday, May 3, Bash Day 2
- The slides for Wednesday, May 4, Bash Day 3
- The slides for Friday, May 6, Bash Day 4
- The slides up to the current date printable 2x4 Bash
Tutorials
- Monday, May 2, Galton Board, sample solutions: [galtonboard.sh]
- Tuesday, May 3, File Renamer and Address Manager, sample solutions:[file_renamer.sh][addresses.sh]
- Wednesday, May 4, Chocolate Competition
- Friday, May 6, Simulation runtime results
Other Files
- story.tgz: Sample folder and sample text files
- MCMC.tgz: MCMC files
- sed_example.txt: well commented step-by-step instruction for a sed replacement task
- runtimes.tgz: molecular dynamics runtime results