I am modifying some script and need to have the script reflect the current date. I have the script below. In the section yy="2010",mm="07", dd="12" What would I need to change to have the script automatically input the current year month & date instead of manually updated the script daily?
yy="2010"
mm="07"
dd="12"
for hh in 00 06 12 18; do
${PGM}/file -i${dir}/file2_${yy}-${mm}-${dd}_${hh}:00:00
cat file.BIN >> file2km.${yy}${mm}${dd}00
done
rm -f FILE.BIN