4
3
On Mac OS X or Linux, is there a simpler form of the command
find . -name "*substring_of_filename*"
which is to find all files having names containing substring_of_filename
within the current directory (or some other given directory). Because it's a common thing to do, is there a way to make the command shorter and easier to type, possibly using an alias or function in Bash? Or is there some other easy-to-type command that can be used?
Such as:
findfile . substring_of_filename
(Note: The question as originally written used app_config as an example of substring_of_filename.)
2
locate app_config
– knittl – 2011-05-02T15:00:05.0571@knittl: But
locate
is not restricted to the current dir and it's subdirs. – user unknown – 2012-11-10T05:25:40.033