Hi,
Sorry, I will try to make things a bit more clear :
find /tmp -name \*ipt -exec grep pall {} \; -exec ls -l {} \;
The find command you probably know. It searches for files or directorys where you want him to search and to what pattern to match.
So :
"find /tmp" says only start searching in /tmp
"-name \*ipt" says to look for a file or directory ending with "ipt" the \ before the star says to not look for a file or directory named "*ipt" but to make it a pattern
"-exec grep pall {} \;" says that the result of find in /tmp with the pattern ending on "ipt" should do the following : "grep pall /tmp/script" so {} \; is replaced with the current result. It's hard to explain the syntax, I think you should just take this as it is and copy the syntax when you need it
"-exec ls -l {} \;" has the same syntax and executes the ls -l command for the current result. If you don't do this last -exec you don't know what file he grep the text from.
Hope you understand it know. Don't forget there is always a man page from find. I know it is large, but there is so much beautifull to explore in the man from find !!
@yourservice
David