Shell man if

I thought (mistakenly) that I would be be able to understand this code if I ran man if

Bash:
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

but I can't, so can someone help me out?
 
Annotated:
Code:
if [ -r /etc/defaults/periodic.conf ]   # checks if the file /etc/defaults/periodic.conf exists and is readable
then
    . /etc/defaults/periodic.conf       # if it is readable, source the file
    source_periodic_confs               # execute a function that's defined in /etc/defaults/periodic.conf
fi
 
Back
Top