Scripting with Bash and Python - 2011
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:
- There will be no course on Thursday, May 5!
- We will start Python on Monday in the second week.
As the course is rather interactive, please bring your laptop (preferably with Linux). You can then just try things out and practice right away.
- Bash as shell (*1)
- Collection of standard tools
- If you are using Windows, we recommend to install cygwin full/extended
- Python 2.6, as not all packages have been ported to Python 3.X (*1)
- Scipy (which should include IPython as interactive Python shell; if not, get IPython); see 
(*1): Required for the first day each.
- 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 for Monday, May 9, Python Day 1
- The slides for Tuesday, May 10, Python Day 2
- The slides for Wednesday, May 11, Python Day 3
- The slides for Thursday, May 12, Python Day 4
- The slides for Friday, May 13, Python Day 5
- Monday, May 2, Galton Board
- sample solutions: [galtonboard.sh]
- Tuesday, May 3, File Renamer and Address Manager
- Wednesday, May 4, Chocolate Competition; see slides for solutions
- MCMC.tgz: MCMC files
- Friday, May 6, Simulation runtime results
- runtimes.tgz: molecular dynamics runtime results
- Monday, May 9, TicTacToe
- Tuesday, May 10, Caesar's Cipher (with Chocolate Option)
- Wednesday, May 11, Blackjack (LAST Chocolate!)
- Thursday, May 12, Practicing Modules & Co.
- Friday, May 13, Advanced File Renamer in Python
- renamer.py: sample solution; note that almost all the code is dedicated to help and comments; the real functionality is rather short.
- story.tgz: Sample folder and sample text files
- sed_example.txt: well commented step-by-step instruction for a sed replacement task