Pass file like list of params to find command
Hi everybody,
I have a list of ids and I need to find all files that contains this ids, the ideia is delete all this files. This command returns me all files but in the same line: find . -type f -print0 | fgrep -zFf temp ps: temp is a file with all ids. How can I find all files that contains all these ids? thanksss |
Quote:
Code:
find . -type f -execdir fgrep -lf temp '{}' ';' Code:
fgrep -lf temp <filename> As a side note, "fgrep" is the same as "grep -F", rendering a second -F unnecessary. |
All times are GMT -5. The time now is 04:38 AM. |