Coding
Finding Replacing Filenames & text inside files using perl
A few “Bash Tricks” for the peeps
First up:
Find & replace filenames
This finds file that match Somethinghtml.html and renames to Something.html (HTTP Track users will recognize these two examples as fixes to common naming problems when scraping a site.) Note you can change the mask of files searched by changing the find mask at the [...]
Ubuntu Apache Tuning
So I recently needed to do a little quick performance tuning at work on one of our ubuntu server installs. I’ve been using some of the wisdom found here to refresh myself on the basics, and I wrote a quick little one line awk script to give me the total amount of memory being used [...]
Tricks of the CLI Trade
Show just directories with pretty ls colors!
ls -ld */
Find in files cheap and dirty unix style!
find . -type f| xargs grep ’some_string’
[Listening to: Wouldn't Believe It - The Get Up Kids - Guilt Show (3:47)]
Subversion helper Bash Script
Sometimes repository names get long, and when you’re using subversion typing them all out can be a pain. I wrote this quick bash helper script to make using subversion with one repository easier and quicker to use.
#!/bin/bash
MYREPOSITORY=”http://myrepository.net/svn”
#Script requires USERNAME, REPOSITORY DIRECTORY, and COMMAND
MINPARAMS=3
if [ $# -lt "$MINPARAMS" ]
then
echo ” Usage: ./msvn [...]



