![]() ![]() To search for files with words, pie and 2016 anywhere in the file name, do spot pie*2016 #or Now, either source ~/.bash_aliases or open a new terminal load functions. Open "$(mdfind -name -onlyin "/Users/foo/articles" "kMDItemDisplayName='*$1*'cd" | sed -n "$")" # default to open the first entry unless 2nd positional argument is given Mdfind -onlyin "/Users/foo/articles" "kMDItemDisplayName='*$1*'cd" # restrict to files under (recursive) a specific path ![]() ![]() # find any item matching search query in file name I find this easier than typing long string of query in spotlight window.Īdd following functions in ~/.bash_aliases. You may use following command line functions to quickly find and open relevant file. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |