Find & Grep utility with SQL-like query language.
```bash
fgr -e name=sample
fgr /home /bin -e 'name=s and perm=777'
fgr /home -e 'name="SAMPLE"'
fgr /home -e 'name=i"SAMPLE"'
fgr /home -e 'name=r".+SAMPLE.+"'
fgr /home -e 'name=ri".+SAMPLE.+"'
fgr /bin -e 'user > 0'
fgr /bin -e 'perms>4000'
fgr /home -e 'atime > now - 1h and atime < now'
fgr /home -e 'type=text and contains=stuff'
fgr /home /bin -e 'name=s and perm=777 or (name=rs and contains=r".+user.is_birthday.")' fgr /home /bin -e 'name=s and perm=777 or (name=rs and contains=birth*)' fgr /home /bin -e 'ext=so and mtime >= now - 1d' fgr /home -e 'size>=1Mb and name != *.rs and type=vid'
fgr /home -e 'perms=777' -p | xargs -0 -n1 | sort
```
/sys/kernel/security/apparmor/revision
) .ignore
support, thanks to ignore crateBy default, it acts like the find
and visits all directories.
Search by name is quite fast
```bash du -h /home
sudo sh -c 'echo 1 >/proc/sys/vm/dropcaches' sudo sh -c 'echo 2 >/proc/sys/vm/dropcaches' sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'
fgr /home -e 'name=sample' # 1.09s user 2.70s system 169% cpu 2.239 total
sudo sh -c 'echo 1 >/proc/sys/vm/dropcaches' sudo sh -c 'echo 2 >/proc/sys/vm/dropcaches' sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'
find /home -name 'sample' # 0.71s user 2.09s system 12% cpu 22.156 total ```
/proc/**/pagemap
scenarios)