![]() |
Does Xterm's Find support wildcards?
I'm trying to workout some problems I'm having with PyGame. I was hoping I could find a doc file for it in Xterm so I ran this command (as root)
Code:
# find / -name pygame* -print Code:
BusyBox v1.61 (2008-05-22 10:32:35 EEST) multi-call binary Thanks for your consideration and assistance. |
Re: Does Xterm's Find support wildcards?
Try putting your expression in single quotes, i.e. 'pygame*'.
|
Re: Does Xterm's Find support wildcards?
On a Linux system the shell expands wildcards before passing them to the program. (The DOS command line works differently and leaves it up to the programs to interpret the arguments.)
That means if you already had some files in the current directory called pygame1 and pygame2 you actually ran "find -name pygame1 pygame2 -print". You command will work as-is only if there isn't anything to match pygame* in the current folder. As ace said quoting the argument prevents the shell expanding it. Also you don't need -print as that is the default action on Linux (though not on all versions of Unix). |
All times are GMT. The time now is 11:58. |
vBulletin® Version 3.8.8