BASH Script and $RANDOM
Inspired by this thread, I wrote a small BASH script just for the hell of it.
Anyway, take a look at it first: Code:
#! /bin/bash
|
First of all, I would like to say thanks, as my thread inspired you to do this LOL
But seriously now, I have to run this and time it once I get home to see, if it would ever break, how LONG this would take. Thanks for giving me something to do with my time! And also, if I think of anything to make it better, I will let you know. Josh |
Based on the following:
Quote:
As to: Quote:
2. C is an integer and not a string so quoting would not seem appropriate although it of course causes no error 3. (()) is used by bash for numeric comparisons and arithmetic so the following changes could be made: Code:
if [ $A -eq $B ]; then |
All times are GMT -5. The time now is 12:20 PM. |