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

jopen 10年前發布 | 23K 次閱讀 SQL 常用工具包

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.baiduhome.net/lib/view/home/1399559405478

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!