[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding file with specific Text string



Jeff Licquia <jeff@licquia.org> replied:
> find <dir> -type f -print | xargs fgrep -l '“LSTMIS1”'

Since Word files tend to have names that have spaces in them,
this will likely "blowed up real good".

Try this instead:
  find <dir> -type f -print0 | xargs -0 fgrep -l '“LSTMIS1”'

Note, the -print0 (dash-print-zero) and xargs -0 (dash-zero) arguments
are specific to GNU implementations. YMMV.

Mike808/


---------------------------------------------
http://www.valuenet.net



-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.