few ways to see which files contain a string
find . -name \*config -print -exec grep "sam:" {} \; > /tmp/find_out
grep -H -r "sam:" ./
grep -lir "text to find" *
grep -i -n ‘text to search' *
grep --with-filename --line-number `find -type f`
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment