Search Results

Search: Posts Made By: diex
49,505
Posted By diex
That said. Can you convert 1.0 in to 1...
That said.

Can you convert 1.0 in to 1 without using a function? Strip off the decimal?

$x = 2.0
.... =2


Thanks
49,505
Posted By diex
Thanks for reply. I think that would have...
Thanks for reply.

I think that would have worked if my variable was not a decimal. I think thats part of the problem.

Error:
line 5: [: 0.0: integer expression expected
49,505
Posted By diex
Problem with Greater Than Or Equal To
BASH problem with IS GREATER THAN OR EQUAL TO.

I have tried a dozen variations for this IF statement to work with IS GREATER THAN OR EQUAL TO. My code below WORKS.

array=( $( /usr/bin/sar -q...
Showing results 1 to 3 of 3

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