fql文件操作

联合创作 · 2023-10-01 00:59

这个工具可以让你像操作数据库一样操作文件。

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

example:
  fql "select time, size, name from ../"
  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"

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]
  where [expression]
  order by [attrs]
  limit [[start,] limit]

Make (libreadline is optional):
  ./configure && make

Install:
  copy ./fql to where you like such as /usr/local/bin/.
  or make install

浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报