You are not logged in.
Pages: 1
What I'm trying to do: Search and list files containing a keyword and access them as symlinks. Basically, a dynamic directory updated by a search criterion
I can only think of a pretty clumsy way of doing this:
create RESULT_DIRECTORY to contain symlinks to files
cron job to search for keyword and create symlinks:
find ~ -type f -iname "*KEYWORD*" -exec ln -l {} ~/RESULT_DIRECTORY
I feel I'm overlooking something simpler. Is there an elegant way to do this?
Offline
Sounds like you want a database:
https://wiki.archlinux.org/index.php/MySQL
"Yesterday is history, tomorrow is a mystery, but today is a gift. That is why it is called the present." - Master Oogway
Offline
Look at locate package [https://wiki.archlinux.org/index.php/Co … ies#locate]
Offline
You could do this with FUSE, but it would require much more work than scheduling your "find" script (or an alternative with "locate"). What's the purpose of the directory with the symlinks? This may be an X-Y problem with a more direct solution.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pages: 1