Shellscriptingnotes
This page has some random shell scripting notes for useful tasks.
NOTE: Please don't laugh at my notes. I know, I know… this is horribly easy and basic stuff. Shut up - I'm new at it. ;)
- Doing things to multiple files/dirs
A lot of times, you have to change something in many different directories. A good example is having to remove configuration dir .mozilla from every users' home directory). Shell scripting can do this easily.
#!/bin/bash
for file in /home/*
do
rm -rf $file/.mozilla/
done
#EOF
page_revision: 1, last_edited: 1220466160|%e %b %Y, %H:%M %Z (%O ago)





