[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: /bin/sh and 4.7 GB integers
On Thu, Jun 19, 2008 at 4:28 PM, George Georgalis <george%galis.org@localhost>
> I made a little script to keep a tally of bytes for recording to
> iso with anticipation my file list would be bigger than dvd media.
> once that counter rolled over 4.7 GB the script would generate a
> new list for the next iso.
> works fine for 700MB cdrom, but aparently there is an integer
> rollover for >4.7 GB counters.
> I switched to counting kBytes vs Bytes, for the fix, but I was
> wondering if there is a way for >4.7 GB counters in sh?
expr $tally + 1 #or however you do this
echo "$tally +1"|bc
Main Index |
Thread Index |