fselect
Find files with SQL-like queries. More information: https://github.com/jhspetersson/fselect/blob/master/docs/usage.md.
- Select full path and size from temporary or configuration files in a given directory:
fselect size, path from where name = '' or name = ''
- Find square images:
fselect path from where width = height
- Find old-school rap 320kbps MP3 files:
fselect path from where genre = Rap and bitrate = 320 and mp3_year lt 2000
- Select only the first 5 results and output as JSON:
fselect size, path from limit 5 into json
- Use SQL aggregate functions to calculate minimum, maximum, and average size of files in a directory:
fselect " from "
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
