gossip/filescontaining.sh

5 lines
134 B
Bash
Executable File

#!/bin/bash
find . -name .git -prune -o -name target -prune -o -type f -exec grep -H "$1" {} \; \
| awk -F: '{print $1}' | uniq