shellnotes/util/notegrep/sf.sh

14 lines
328 B
Bash
Raw Normal View History

2021-06-23 18:36:22 +02:00
:<<'info'
shellnotes - sf.sh
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
info
files="$(grep -rwl $regex $DEFAULT_PATH/* | wc -l)"
if [ $files -ge 1 ]; then
grep -rwl $regex $DEFAULT_PATH/*
else
echo "No matching files found."
fi