#!/bin/bash
date_diff=1
yesterday=$(date --date="${dataset_date} -${date_diff} day" +%Y%m%d)
y=$(echo $yesterday | cut -c1-4)
ym=$(echo $yesterday | cut -c1-6)
ymd=$(echo $yesterday | cut -c1-8)
base_path="/c/ftp/PAR003" ################# CHANGE THIS!!!! #########################
filepath=${y}/${ym}/${ymd}
mkdir -p ${base_path}/${filepath}
mv ${base_path}/000NETDL06_${yesterday}* ${base_path}/${filepath}