> if you need certain extension, you don't even need cat and find, it's all about grep: > $ grep 'string' *.extension ~ The thing is that I need to know in which file the pattern was found and as you guys suggested: ~ $ find -name '*.extension' -exec grep -H 'pattern' {} \; ~ does it ~ Thanks lbrtchx