> >And, we support querying attributes that don't have indices.
>
> Now I have two feature requests:
> * querying files under a certain folder (+ sub folders)
>
That could be done in user-land right now, either as a script that
called query and filtered out everything not in the specified
directory. Same for OpenTracker.
>
> * searching in the file data
>
This is a bad idea; compare a search in the list of file names/
attributes, compared to searching the enire disk. That's really not
the scope of BFS queries. That belongs to grep.
Add these lines to your /boot/home/.profile:
#
# rgrep() - recursive grep in the current directory
#
alias rgrep="find . -type f -print0 | xargs -0 egrep"
#
# search - query for files, filter out anything not in the current dir
or sub-dirs to it.
#
function search() {
curr_dir="$(pwd)"
query "$*"|grep ^$curr_dir|sed -e "s,^$curr_dir,.\1,g"
}
For a faster search, skip the last '|sed -e "s,...' stuff.
*yawn*
--
Mikael Jansson, BeDevID #E-20392
http://hem.spray.se/tic_khr/