Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
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 find $plog -type f -name $filename |while read file do RESULT= `grep $search $file` if [["$RESULT" ==""]]; then echo "Error(s) in $file: $RESULT" >> $outfile fi done exit 0
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.