Search Results

Search: Posts Made By: nvidiaaaa2
2,293
Posted By nvidiaaaa2
aah ok, i'm suich a noob, for misspelling hours,...
aah ok, i'm suich a noob, for misspelling hours, sorry, i'm not use to the interface yet as i'm using putty on my windows machine and it taking time for my eyes to adjust to the color scheme.
...
2,293
Posted By nvidiaaaa2
I updated my code to include the validation, at...
I updated my code to include the validation, at present it does not work as it says:


traveltime: line 18: 40 \% 60: syntax error: invalid arithmetic operator (error token is "\% 60")


with...
2,293
Posted By nvidiaaaa2
it's a comment, i commented it out because i...
it's a comment, i commented it out because i wasn't sure if Mythl had commented his test script code which is why i was asking if he had maybe changed his version.
2,293
Posted By nvidiaaaa2
Mythl, thanks for your reply, i adjusted my code...
Mythl, thanks for your reply, i adjusted my code to




#X60=$(($1 * 60))
TOTMINUTES=$(($X60 / $2))
HOURS=$(($TOTMINUTES / 60))
MINUTES=$(($TOTMINUTES \% 60))
i get this error ": line 12:...
2,293
Posted By nvidiaaaa2
Traveltime script
Hi, i',m new to bash scripting and i have the following scrip,

#!/bin/bash
# traveltime - a program to calculate how long it will
# take to travel a fixed distance
# syntax: traveltime miles...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 01:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy