scripts/search.sh

6 lines
97 B
Bash
Executable File

#!/bin/sh
if [ -z $1 ]; then echo "Search requires search string"; exit 1; fi
grep -Irn "$1" .