#!/bin/bash print_usage() { echo "$(basename $0) -- Grep and Less front end." echo "Usage: $(basename $0) GREP_STRING" } if [ $# -ne 1 ]; then print_usage exit 1 fi GREP_STRING=${1} grep --color=always -rn "${GREP_STRING}" * | less -RFX