Search Results

Search: Posts Made By: rbournival
25,006
Posted By rbournival
Wow.... Thank you very much radoulov...
Wow....

Thank you very much radoulov...
25,006
Posted By rbournival
Hi radoulov, It works, I tried both ways...
Hi radoulov,

It works, I tried both ways with bash (I have no option on the shell selection) and they both worked.

Could you explain the difference between one set of square brackets vs 2 sets...
25,006
Posted By rbournival
If there was a problem with the size of the...
If there was a problem with the size of the integer, I should also have a problem changing their values, adding to them, But this code runs without error except when it is time to compare the...
25,006
Posted By rbournival
If there was a problem with the size of the...
If there was a problem with the size of the integer, I should also have a problem changing their values, adding to them, But this code runs without error except when it is time to compare the...
25,006
Posted By rbournival
Hi, Yes, the reversed date string compare...
Hi,

Yes, the reversed date string compare works but the problem is that I have to add this logic to a bash script and the bash script will not handle "-gt" when comparing strings.

Thank you.
25,006
Posted By rbournival
Here is the output of the 'set -x' command : ...
Here is the output of the 'set -x' command :

+ typeset -i currentfiledate=20090220080101
+ typeset -i reportfiledate=20090219231245
+ '[' 20090220080101 -gt 20090219231245 ']'...
25,006
Posted By rbournival
No.... Same error message : bash: [:...
No....

Same error message :

bash: [: 20090220080101: integer expression expected
25,006
Posted By rbournival
Hi, I had the statement in the program. ...
Hi,

I had the statement in the program. Sorry, I did not paste it.

Here is more info about the bash version we're using :

>bash --version
GNU bash, version 2.05b.0(1)-release...
25,006
Posted By rbournival
bash problem when comparing integers
Hi,

When I compare currentfiledate to reportfiledate I get a "-bash: [: 20090220080101: integer expression expected " error message.

currentfiledate=20090220080101...
Showing results 1 to 9 of 9

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