PaulBarbeau
Programmer
Newbee question here i am trying to write a script that move the files from yesterday into a folder dated yesterday however not sure how to subtract dayone from the date. This is the script i have so far however if i run it at 11:59:59 i seam to be missing some files. Can anyone help me out?
Paul
#!/bin/ksh
date1=`date +%Y%m%d`
mkdir ${date1}
mv *${date1}* ${date1}
Paul
#!/bin/ksh
date1=`date +%Y%m%d`
mkdir ${date1}
mv *${date1}* ${date1}