Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael@cisofy.com>2015-10-14 11:55:33 +0300
committerMichael Boelen <michael@cisofy.com>2015-10-14 11:55:33 +0300
commit776a70d6cf47dd86da8ba522364d68aefd150049 (patch)
tree31592e40d0416e16adfd19889718eb47653d11d2 /include/report
parent24a006da14e183fe2092cfc50daad0f8bde83d19 (diff)
parent0c48fc3880551d862063e56a029ce43082df376a (diff)
Merge pull request #82 from SiemKorteweg/master
Optimized use of cat, grep and awk.
Diffstat (limited to 'include/report')
-rw-r--r--include/report2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/report b/include/report
index a65f3534..139101c5 100644
--- a/include/report
+++ b/include/report
@@ -102,7 +102,7 @@
if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi
# Show warnings from logfile
- SWARNINGS=`cat ${LOGFILE} | grep -i 'warning:' | sed 's/ /!space!/g'`
+ SWARNINGS=`grep -i 'warning:' ${LOGFILE} | sed 's/ /!space!/g'`
if [ "${SWARNINGS}" = "" ]; then
echo " ${OK}No warnings${NORMAL}"; echo ""