$ wget http://malfela.blogspot.com | RSS: Main

Friday 21 September 2007

A Linux Shell Script

Really basic, but it's just a test:

#!/bin/bash
# Displays hostname, user and date.

echo "$USER is on $HOSTNAME, at $(date)"

----------

default@ubuntu:~$ ./bin/mscript
default is on ubuntu, at Fri Sep 21 21:35:22 BST 2007

No comments: