Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (13 sloc) 348 Bytes
#!/bin/zsh
findthis="$@"
find . | while read file; do
strings="`strings $file | grep -i "$findthis"`"
filen="`echo $file | grep -i "$findthis"`"
if [[ -n "$filen" ]]; then
echo "\e[1;34m--> \e[0;33m$file"
fi
if [[ -n "$strings" ]]; then
echo "\e[1;34m--> \e[0;33m$file"
echo "\e[0m$strings"
fi
done
Something went wrong with that request. Please try again.