3 ms·
Yeah. I often do "find . | grep 'foo'". Perhaps "find" can do it without the "| grep" bit, but I have not RTFM. :P
by johnisgood 5y ago
Yeah. I often do "find . | grep 'foo'". Perhaps "find" can do it without the "| grep" bit, but I have not RTFM. :P
- aidenn0 5y agoYou probably want -name or -iname which match glob-like expressions against the filename (the "i" prefix means case insensitive). If you really need regex you can use -regex or -iregex, but be aware that they match the entire path (so if you do "find ." you will be matching a string that starts with "./"