Search Results

Search: Posts Made By: Vozx
4,277
Posted By Vozx
egrep help
How can i make something like
if (echo "$arg2" | egrep -s '^[0-9]+\.[0-9]+km/h+$|^[0-9]+km/h+$'); then
not to output the value of $arg2 on the screen, evertime i get match it outputs the value of...
43,034
Posted By Vozx
Convert minutes to hours, minutes, seconds
How would you convert lets say a 1000 minutes to hours, minutes, seconds
9,815
Posted By Vozx
Bash: Reading 2 arguments from a command line
If no arguments are entered I wanna be able to read 2 arguments, i have done like this but it doesnt work:

x=0

until [ $x -eq 1 ] #loop starts

do

if [ $# -eq 0 ]; then
echo...
3,475
Posted By Vozx
I am using bash shell, thanks for reply, but what...
I am using bash shell, thanks for reply, but what i wanna do is have something like this

24. 40 (where 40 is on 15th character of the screen)
3,475
Posted By Vozx
How To Make Decimal Point Fall On The 15th Character On The Screen
If i have a variable which is a decimal number, i.e 34.05 How can you make decimal point fall on the 15th character on the screen? Or any other that you can specify? Can you do it using sed or...
1,956
Posted By Vozx
SED Help
Can anyone help me with setting up sed regular expression to match the following format?

12hr:30min
5,541
Posted By Vozx
I encountered another problem whenever i devide a...
I encountered another problem whenever i devide a smaller number by a bigger number i.e. 4/9 instead of getting the answer as 0.4444444444 i just get 0

Why is that, and what can i do t oget the...
5,541
Posted By Vozx
What does scale=12 mean?
What does scale=12 mean?
5,541
Posted By Vozx
Devision of Decimal Numbers?
How can i devide decimal numbers?

I am getting this kind of error:
line 18: 200.2/40.234: syntax error in expression (error token is ".2/40.234")

What can i do to work around this problem?
...
3,043
Posted By Vozx
Bash: Data Input Verification Help!
Hey guys i am trying to right script with this:

Input
Valid user input can be in the following formats:
Distance: in miles or kilometers, e.g. 100mi or 100km
Speed: miles per hour or kilometers...
Showing results 1 to 10 of 10

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