linux shell loop

$1 and $2 are inputs of the scripts

“script minframe maxframe”

bat file:

#!/bin/bash

x=$1
while [ $x -le $2 ]
do

mf_fade -i export_dust_mf.$x.mf -o export_dust_mf1.$x.mf -mc /studio/pib/shdw_fx/prod/sq1150/s193/fx/fx_dust/mc/fade.mc -only densit

x=$(( $x + 1 ))
done

echo “yeah baby, all Done !!!!!”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s