[GNU find version 4.2.27] find: paths must precede expression
I have difficulties with the "find" command. Maybe I'm just not understanding really how to use it.
Let's say I am searching for all files with the extension "xsc": Code:
[prompt]$ find ~ -name *.xsc Code:
[prompt]$ find ~ -name *.xsc* I'm using GNU find version 4.2.27 on CentOS release 5 (Final) |
Here's one explanation: http://www.programmersheaven.com/use...de-expression/
|
*
find ~ -name *.xsc* : Use quotes → → find ~ -name "*.xsc*" |
knudfl's solution is correct.
What's happening it that bash is interpreting the wildcards (in your case, turning them into a list of all files matching "*.xsc*" in the current directory) before passing them to find. |
All times are GMT -5. The time now is 07:31 PM. |