Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
mydir=/start/dir plog=/start/log filename=sasprog1.log search=ERROR outfile=file1.txt sas=/products/SAS/SASFoundation/9.2/sas $sas <$mydir/sasprog1.sas> $plog/$filename # is this a proper way to run a SAS program and then create SAS log?? find $plog -type f -name $filename |while read file do RESULT=$(grep $search $file) # is this correct? if [[ ! -z $RESULT ]] then echo "Error(s) in $file: $RESULT" >> $outfile fi done exit
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.