SubscribeframeIndex =$(($frameIndex +1)), to read: frameIndex=$(($frameIndex +1))ratio=`calc 24/2.8`; frameIndex=1; while [ "$frameIndex" -le 600 ]; do calc $frameIndex*$ratio; frameIndex=$(($frameIndex +1)); doneratio=`calc 24/2.8 | tr -d '~'`; frameIndex=1; while [ "$frameIndex" -le 600 ]; do calc $frameIndex*$ratio; frameIndex=$(($frameIndex +1)); donegawk 'BEGIN {ratio=24/2.8; i=1; maxFrame=600}; { for (i=1; i<>>gawk 'BEGIN {ratio=24/2.8; i=1; maxFrame=600}; { for (i=1; i<=maxFrame; i++) print i,"\t",i*ratio; exit 0; }'; for i in range(600):
print i,int(i*24/2.8)
You are not logged in, either login or create an account to post comments
bashand have GNUcalcinstalled:frameIndex=1; while [ "$frameIndex" -le 600 ]; do calc $frameIndex*8.57143; frameIndex =$(($frameIndex +1)); doneIf you want to do this all on one line and send it to a file:
frameIndex=1; while [ "$frameIndex" -le 600 ]; do calc $frameIndex*8.57143; frameIndex =$(($frameIndex +1)); done > output.txtIf you want to do this all on one line and print it:
frameIndex=1; while [ "$frameIndex" -le 600 ]; do calc $frameIndex*8.57143; frameIndex =$(($frameIndex +1)); done | lprposted by Blazecock Pileon at 10:35 PM on July 10