#!/bin/bash

chirps_file=$(find 20* -type f)
rm list.txt
for i in $chirps_file; do
	directory=$(echo $i | cut -d '/' -f 1)
	file=$(echo $i | cut -d '/' -f 2)
  echo "https://files.mint.isi.edu/s/vAXxIENbIdv0WPi/download?path=%2F${directory}&files=${file}" >> list.txt
done
mv list.txt /tmp
