Monthly Archives: March 2007

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

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

Delete all directories more than a week old View Comments

This simple [tag]linux[/tag] [tag]bash[/tag] 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 [...]