advertisements
_____________________________________________________________________________________________________________________
HW=3 # Modify this variable value. In this example it will find out
the files created within last 3 hours.
a=$( date +%H )
if [ $a -gt $HW ]; then
a=$((
$a - $HW ))
else if [ $a -lt $HW ]; then
a=$((
$a + 24 - $HW ))
else
_____________________________________________________________________________________________________________________
0 comments:
Post a Comment