temp loop bash script