Wednesday, March 18, 2009
The other day I needed to convert all folders, their subfolders, and all containing files from uppercase to lowercase on a UNIX machine. I’m not as saavy with UNIX as I’d like to be, but after a little trial and error came up with a script that did what I needed it to do. I couldnt find anything to do exactly what I needed online, so hopefully this will come in useful for somebody.
#!/bin/bash
if [ -n "$1" ]
then
if [ -d "$1" ]
then cd “$1″
else
echo Invalid Directory
exit
fi
fi
for x in `find . -type d`
do new=`echo $x | tr ‘[:upper:]‘ ‘[:lower:]‘`
mv $x $new
done
for x in `find . -type f`
do new=`echo $x | tr ‘[:upper:]‘ ‘[:lower:]‘`
mv $x $new
done
Just put this in a file and run it with the path to your directory as the input parameter.
SPKiller (Service and Process Killer) is a windows service that sits quietly on a timer thread in the background, stopping and killing any service and/or process that you specify in the SPKPreferences.xml file every n milliseconds. Very handy for things you just can’t seem to get rid of - AdobeUpdater, GoogleToolbarNotifier, AppleMobileDeviceService, etc, etc.
Download, extract, view the ReadMe.
USE AT YOUR OWN RISK!!!
***note***
The SPKPreferences.xml is preconfigured with several services and processes that can prove to be performance drains, or just annoying in general. Modify this file to suit your needs.
**********
DOWNLOAD SPKiller beta
Monday, November 24, 2008
Hi and thanks for coming to check out Zandozan.com! This is a blog for everything I think is neat.