when in home directory and type locate *.cpp I get hundreds of results.
using the same command in (for example) ~/../forfun/netstream/ gets me a dozen results.
how's that possible?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
|
If you run So if there are any .cpp files in your current directory Use
if you don't want the shell to try to expand the pattern. |
|||
|
|
|
Alternatively if you're happy with the output of locate but just want to trim it down, you can always pipe it through
|
|||
|
|