[SLUG] If there's a competition for the most useless bash
script...
Al Girling
al21 at firenet.uk.com
Wed Apr 23 09:41:03 BST 2003
On Tue, 22 Apr 2003 23:33:16 +0100
Jonathan Worthington wrote:
> You can probably guess the error is there. The -n (Null) check doesn't seem
> to want to work... Ah well, we can always do it by checking number of
> arguments... Replace the above with:-
>
> # If no char is entered set it to default (#).
> if [ $# -lt 3 ]; then
> CHAR='#'
> fi
This works for me! Well done!
I know you think this has little value, but to me it give another working example of bash scripting to experiment with.
Cheers
Al
More information about the Scarborough
mailing list