Month: September 2011

Interactive Vim Tutorial

From lifehacker.com Vim has long been praised as one of the best text editors around, mostly for its completely mouseless navigation. However, it can be very confusing for beginners. This interactive tutorial gets you started so you can edit text files with blinding speed. If you spend a lot of time editing config files and…


Core envy…


Copy one file to multiple directories

Had a client ask to copy a file to multiple public_html directories, came across this little bash script which worked beautifully: touch copy.sh vim copy.sh add this to file, modifying the name of the file to be copied (in this case, test.php) #/bin/bash for file in $(find /home/* -name public_html -type d) do cp test.php…