V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xlmo
V2EX  ›  分享发现

q - Text as Data

  •  
  •   xlmo · 2014-10-23 17:06:15 +08:00 · 3032 次点击
    这是一个创建于 3444 天前的主题,其中的信息可能已经有所发展或是发生改变。
    q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).

    例如:q -d , "select c1 from ./a.csv where c1 > 300"


    http://harelba.github.io/q/
    2 条回复    2014-10-24 09:59:40 +08:00
    egen
        1
    egen  
       2014-10-23 19:28:13 +08:00
    大赞

    看他实现的原理倒不复杂,把输入做成内存数据库,然后调用sqlite执行sql
    zzcworld
        2
    zzcworld  
       2014-10-24 09:59:40 +08:00 via iPhone
    我还以为你说的是KDB+ http://www.kx.com/ 这个很厉害 也可以用sql读csv
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3889 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 05:10 · PVG 13:10 · LAX 22:10 · JFK 01:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.