采用SQL语句操作CSV或TSV文件:q

jopen 10年前

q让你直接在CSVs/TSVs(逗号分割文件/制表分割文件)或其他表格式的文本文件上运行像SQL一样的查询,查询操作包括joins 或其他SQL操作,支持自动字段类型和名字的检测。

亮点

  • Seamless multi-table SQL support, including joins. filenames are just used instead of table names (use - for stdin)
  • Automatic column name and column type detection (Allows working more naturally with the data)
  • Multiple parsing modes - relaxed and strict. Relaxed mode allows to easily parse semi-structured data, such as log files.
  • Standard installation - RPM, Homebrew (Mac). Debian package coming soon.
  • Support for quoted fields
  • Full UTF-8 support (and other encodings)
  • Handling of gzipped files
  • Output delimiter matching and selection
  • Output beautifier
  • man page when installed through the RPM package


 

项目主页:http://www.open-open.com/lib/view/home/1399559405478