On the command line in gnome-terminal
(konsole
, yakuake
, or whatever) then locate
takes multiple arguments and searches for a match on any one of them.
locate 90025 90028 90094
Will return all files that match any of the strings.
man locate
will give more information, for example how to match AND-wise, how to use regular expressions to search, etc.. locate
relies on a database of files which is updated using sudo updatedb
.
A BASH script one-liner like:
dirt=$(mktemp -d -p ~); cd $dirt; for i in $(locate 90025 90028 90094); do ln -s $i; done
Will make a temporary directory beneath your home directory that links to all of the files found in the locate command. You can sort through that directory and delete the soft links you don't want (this doesn't delete/affect the files they link to). I use a similar process to gather photos to share online.