aboutsummaryrefslogtreecommitdiff
path: root/bin/contentsearch
blob: 03a0f6a28e6db5cd431333baef5b3c38e9cb6b4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

files=$(find -type f -name "*$2")

for file in $files; do
	found=$(cat $file | grep -i "$1")
	if [ -n "$found" ]; then
		echo -e "\e[1m$file:\e[0m"
		echo $found
	fi
done