#!/bin/bash

#### Enter the year
echo -n "write YearSemester (for example, 2009B)---->  "
read YearS

# create backup of index files that were changed in the last 2 months.

echo $YearS

find -maxdepth 2 -mindepth 2 -ctime -60 -name Index.html -exec ls '{}' \; | awk -F "/" '{system ("cp " $2 "/Index.html " $2 "/Index_" year ".html")}' year="$YearS" -



