MLUG Bash Scripting Workshop 25/04/08
Prev Index Next

Your turn, modify get-forecast

OK, there you have it. I'm hoping your up to speed with how get-forecast works now.

Each time I have introduced an example in this workshop I have invited you to have a play with the script.

Here's your last call. I have put the new clean version of get-forecast from the previous page here for you to work with.

Go ahead and change it. If you live in a different locality, say, Geelong, go ahead and change the sed commands to get your weather from the BOM. If you have a cousin living in Bendigo, make up a script with his weather for him to use. If your cousin don't use linux send him his forecast as an email after adapting the weather-mail script.

I've been telling you all along you have to get your hands dirty. Look at other peoples scripts, play with other people's scripts, write your own scripts, fix them if they don't work, find ways to improve them when they do work, don't get frustrated and don't think it's too hard.

It will get easier the more you do it.

It might even become fun.


Top