Archive for June, 2008
Horses… what can I say
12 June 2008
Google from the command line
6 June 2008#!/bin/bash
query=”$@”
if [ -z “$query” ]; then
echo “Usage: google < search term >”
echo “You must specify a search query”
exit -1
fi
query=`echo $query | sed -e s/’ ‘/%20/g`
w3m -dump -no-cookie -cols 200 http://www.google.com/search?q=${query} | grep Cached | cut -f 1 -d’ ‘
Bash variables
6 June 2008From the bash documentation… here for my special reference guide.
3.4.2 Special Parameters
The shell treats several parameters specially. These parameters may only be referenced; assignment to them is not allowed.
* Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, it expands to a single word with the […]
CCTV Film clip
5 June 2008Saw a cool use of the copious number of CCTV cameras being pointed at UK citizens and felt I had to share.
Unable to afford a proper camera crew and equipment, The Get Out Clause, an unsigned band from the city, decided to make use of the cameras seen all over […]