[ale] Bash question
Geoffrey
esoteric at 3times25.net
Thu Sep 5 10:24:17 EDT 2002
Understanding that this was originally a bash question, I'd suggest Perl
is really the proper tool. I'm just waiting for Fletch to chime in
here... :)
Danny Cox wrote:
> Andrew,
>
> On Thu, 2002-09-05 at 10:01, Andrew Grimmke wrote:
>
>>How about this, or am I on the wrong track?
>>
>> cut -d'=*' -f$RANDOM
>
>
> Well, yeah, if you want to do it all at once! ;-) I thought the main
> idea was to learn bash stuff!
>
> Besides, if the file is 100 jokes long, and $RANDOM returns anything
> greater than 100, you get nothing. You'll still have to do a modulo
> divide in there.
>
> Also, I just checked, the -d option to cut only uses the FIRST char in
> the string you give it.
>
> Close, though.
>
--
Until later: Geoffrey esoteric at 3times25.net
I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list