Search Results

Search: Posts Made By: Scrutinizer
41,260
Posted By Scrutinizer
@jim, what if num=+1 or -001
@jim, what if num=+1 or -001
41,260
Posted By Scrutinizer
Another way, a bit more shell independent (as...
Another way, a bit more shell independent (as long as it is Posix):
$ num=0001
$ echo "$num"
0001
$ echo "$((num+=0))"
1
$ echo "$num"
1
Showing results 1 to 2 of 2

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