April 2008
Python Scripts and Examples
foo3.py - This example Python script will manipulate files and directories.
rf.py (rename files) - This example Python script will rename all files in a directory.
isup.py - A simple Python tkinter scripting example that will check if you are connected to the internet.
EasySSHnSCP - Example Python SSH and SCP script using the pExpect python Expect module.
January 2008
ASPN : Python Cookbook : sed/awk : Python script to rename subdirectories of a directory tree, replace strings in files
(via)I needed to write a sed/awk Python equivalent for walking into a directory tree and renaming certain subdirectories, while also looking into all xml files on the way and replacing/modifying certain strings in those files.
1
(2 marks)