#dir_in=$1 dir_out=/media/analysis_nas/exp202003/data/clb/ #echo $dir_in $dir_out for file in $(ls -tr $(find ../data/clb/ -type f -newermt '10/01/2020 0:00:00')) do fbname=$(basename "$file" .lmd) go4analysis -file $file -store $dir_out$fbname.root echo $file done