#!/bin/bash

# Since Filezilla doesn't seem to retain modified dates(even if its set in the settings), this script re-dates directly, based on name 

find Blogs -print | while read filename; do
    if [[ $filename == *.txt ]]
    then
        date_0=${filename#Blogs/}
        date_1=${date_0%.txt}

        touch --date $date_1 $filename
        ls -l $filename
    fi  
done
