This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Test for OpenSSL - if not installed stop here. | |
if ! [[ -x $(which openssl) ]]; then | |
printf "\nOpenSSL not found or not executable.\nPlease install OpenSSL before proceeding.\n\n" | |
exit 1 | |
fi | |
### user adjustable variables ### | |
# 30 days is default on warnings - overidden on command line with '-d': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: | |
# | |
# search a specific FILE_PATTERN for REGEX_PATTERN | |
# and print full path and matching lines: | |
# ./findgrep DIRECTORY FILE_PATTERN REGEX_PATTERN | |
# | |
# search all files for REGEX_PATTERN and print unique filenames: | |
# ./findgrep DIRECTORY REGEX_PATTERN |