PrepAway - Latest Free Exam Questions & Answers

Category: 640-760 (v.1)

Exam 640-760: Cisco Certified Network Associate in Service Provider Operations (CCNA SP Operations) (update Sep 4th, 2015)

Which one of the statements is true?

Refer to the UNIX shell script below. Which one of the statements is true?
dir=/var/adm/CSCOpx/files/rme/dcma/devfiles
log=/tmp/removeDcmaFiles.log
echo “Starting removeDcmaFiles cron job `date`” >> $log
for i in `ls $dir`; do
 length=`ls -lrt $dir/$i/PRIMARY/RUNNING/ | wc -l`
 h=`expr $length – 3`
 for j in `ls -rt $dir/$i/PRIMARY/RUNNING/ | head -$h`;do
ÂÂ echo “rm -rf $dir/$i/PRIMARY/RUNNING/$j” >> $log

ÂÂ rm -rf $dir/$i/PRIMARY/RUNNING/$j
 done
done


Page 12 of 12« First...89101112