my bash code basically just needs to generate paths with dates as folder names. But gets stuck at 19820101 for some reason. Really cant quite figure out what's the special case with 1982? Any idea why this is happening?
DTZ=19540101
while [[ $DTZ -le 19850101 ]]
do
echo username@servername:/path/filename_${DTZ}TO0300Z >> afile
DTZ=$(date +%Y%m%d -d "$DTZ+1 months")
done