![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Environment variable | MasterapocA | SUN Solaris | 2 | 03-18-2008 09:39 AM |
| sed on an environment variable ? | lumix | Shell Programming and Scripting | 3 | 12-15-2007 06:30 PM |
| What is the Maximum number of characters that i can store in a variable? | pcshan | UNIX for Advanced & Expert Users | 9 | 08-11-2004 06:25 PM |
| TOR environment variable | Wittich | UNIX for Dummies Questions & Answers | 3 | 07-30-2003 01:40 PM |
| Environment Variable | jacobsa | UNIX for Dummies Questions & Answers | 8 | 06-03-2002 04:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Environment variable maximum value
I am trying to write a script which tests for space on a file system and then uncompresses a backup if enough space is available. However the script has failed because I seem to have hit an upper limit for the value of an integer variable.
It can be demonstrated with this piece of code: #!/bin/ksh typeset -i x=5452603392 typeset -i y=13967597568 if [ $x -le $y ] then echo true else echo false fi This returns false. Can anybody advise of another way of doing very large integer comparisons? Thanks |
|
|||||
|
The technique I mention in this thread will also work for very large integers.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|