Does anyone know why using two *'s in a grep command will not return anything. My original command is as follows:
find | grep 0000\:00\:*.0/usb1/authorized_default
In this example, I am attempting to return a file that I do not know the PCI folder name. This command works perfectly and as expected(taking the * as a wildcard) and figuring out that usb1 is in the '1a' folder.
Why does grep not return any results if I place another wildcard in the command to replace 'usb1' with 'usb*'? My end goal is to return all of the authorized_default files which I realize can be done other ways and probably more efficiently. My question then becomes not how can I do this but why does grep not return a result when I put another '*' symbol into the equation?
find | grep 0000\:00\:*.0/usb*/authorized_default
Thanks in advance for your time and responses.