echo "Search For: \c" read ans export ans find . -type f -name "*.[!r!d*]" -exec awk 2>/dev/null ' BEGIN { "print $ans" | getline x; x = tolower( x ); X = toupper( x ); } index( $0, x ) > 0 || index( $0, X ) > 0 { printf "%s\n%d:%s\n", FILENAME, FNR, $0 } ' {} \; 2>/dev/null | pg