I want to pass multiple DB files to the
locate command, like this:
locate -d ~/.a_locate.db:~/.b_locate.db: -Ai file_to_find
But this gives me this error:
locate: can not stat () `~/.b_locate.db': No such file or directory
The man page for locate says:
-d, --database DBPATH Replace the default database with DBPATH.
DBPATH is a :-separated list of database file names. If more than one --database option is specified, the resulting path is a concatenation of the separate paths.
I don't clearly understand what is meant by 'concatenation of separate', What am I doing wrong? I tried giving the full path (
/home/user/.b_locate.db) and it worked. Can someone explain this behaviour?
mlocate package in Arch linux)