When I first moved to linux I had become addicted to keeping my distro updated and so I found myself typing and retyping
$ sudo aptitude update
password:
$ sudo aptitude dist-upgrade
At least once a day. Having read about shell scripts, I thought I’d try my hand at putting this into a shell script which, if you don’t already know, is linux’ more powerful answer to the Windows batch file.
So that’s what I did, and here’s how I did it.

