I'm trying to use the locate command to find files in my home folder, however whenever I try and run this I get no results:
locate -i -l 4 --regexp '^\/home\/jack\/[A-Za-z0-9\/\ ]*(My.)*$'
I've also tried ^\/home\/jack\/^(?!\.)[A-Za-z0-9\/\ ]*(My.)*$
but that returns no results either.
The file I'm looking for just to test it is /home/jack/Music/Foals/My Number.flac
I would like to exclude the results of hidden files from my search.
Best Answer
This seems to do the job.
Quotes from manual: