tag: bash script

How to configure Conky

26 Mar, 2011 - 3 minutes
Install conky from your package manager. The package is called conky. su -c 'yum install conky' sudo apt-get install conky Once that’s installed you can run conky from the command line. When you first run conky it dosent have a very nice look to it, we’ll fix that later. Now that we know conky works, we can create a little bash script to load conky on boot. #!/bin/bash #Conky start-up delay script #Source: http://ubuntuforums.

Using grep and wget to download all hyperlinks to .pdf

28 Jan, 2011 - 1 minutes
I had a site that contained a load of pdfs that I wanted to download, to save me from clicking on each of the pdfs I did some googleing and found how to download all files ending in .pdf. cat index.html | grep -o -e http://[^[:space:]\"]*.pdf | xargs wget and for an even better approach you can make a little bash script that takes the URL as a parameter.