newbie bash questions

2002-11-17 Thread Steve
Hi everyone, for some reason I can't seem to do basic math in this bash script I'm creating for a class I'm taking. Here's my code #!/bin/bash isec=`date +%s` thisec=$isec*$isec-$isec I'm just getting the date in seconds, then trying to get a sort of random number out of it by squaring the

Re: newbie bash questions

2002-11-17 Thread Christopher Solomon
On 17 Nov 2002, Steve wrote: Hi everyone, for some reason I can't seem to do basic math in this bash script I'm creating for a class I'm taking. Here's my code #!/bin/bash isec=`date +%s` thisec=$isec*$isec-$isec I'm just getting the date in seconds, then trying to get a sort of random

newbie bash questions

2002-11-17 Thread Steve
Sorry if you got this twice! Hi everyone, for some reason I can't seem to do basic math in this bash script I'm creating for a class I'm taking. Here's my code #!/bin/bash isec=`date +%s` thisec=$isec*$isec-$isec I'm just getting the date in seconds, then trying to get a sort of random number

Re: newbie bash questions

2002-11-17 Thread Randal L. Schwartz
Steve == Steve [EMAIL PROTECTED] writes: Steve My assignment gah. No homework here, please. Especially *bash* homework. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting,