Monthly Archives: March 2007

T-Mobile will unlock your Motorola phone (for free!) 6

Phones come in two ways, locked or unlocked. If a phone is locked, then you can only use it with one provider, such as T-Mobile or Cingular/AT&T. If it is unlocked, you can put a sim card in from another carrier, and use the phone just as normal. Phones are locked because a carrier [...]

Delete all directories more than a week old 3

This simple linux bash script will delete subdirectories in a directory based on when the subdirectory was last modified.
In my sample script, it looks in the directory /home/backup and deletes any directories older than 7 days. Replace 7 with the number of days of your choosing!
for i in `find /home/backup/ -maxdepth 1 -type d -mtime [...]