-2

System: Ubuntu 11.04, regular user account:

find /usr/share -name *.wav

works okay, but if i do:

find /usr/share -name *.png

it does not produce any output

How do i change the last command to produce an output, like the first command did?

Fabby
  • 5,384

1 Answers1

2

You have an unescaped * in your find. That is handled by the shell before find even sees it, so the difference in output is probably because you're in a directory currently that doesn't have wav files in it (*.wav doesn't expand), but you do have png files.

What should work for you is find /usr/share -name \*.png or -name '*.png'.