Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
use SQL like language to manipulate files
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Makefile.am
Makefile.in
README.md
TODO
ast.cc
ast.h
configure
configure.in
depcomp
expr.cc
expr.h
fql.cc
install-sh
lexer.c
lexer.cc
lexer.h
lexer.rl
missing
parser.c
parser.h
parser.y
sys.cc
sys.h
table.cc
table.h
variant.cc
variant.h

README.md

fql

fql is a tool that use SQL like query to manipulate files.

Example

fql "select time, size, name from ../"
fql "select time, size, name from abc -r"  # scan abc recursivly
fql "select * where name = fql.cc"
fql "select * where not name = fql.cc"
fql "select time, size, name from . where size > 2.5k and size < 3k order by size desc"
echo "select * from . " | fql
or run fql to query intractivly

Available columns to select

name
path
perms
size
inode
uid
gid
uname
gname
atime
time : same as atime
mtime
ctime

Supported syntax

select [attrs]
from [folder] [-r]
where [expression]
order by [attrs]
limit [[start,] limit]

Build (libreadline is optional)

./configure && make

Install

copy ./fql to where you like, such as /usr/local/bin/.

or make install

Something went wrong with that request. Please try again.