Create report and upload to server for download

前端 未结 2 435
悲&欢浪女
悲&欢浪女 2020-12-11 13:50

I have a CSV file thats 300MB and has over 1/2 million entries. I want to run reports and make these reports available for download.

Here\'s the data structure:

2条回答
  •  失恋的感觉
    2020-12-11 14:04

    I'm making one liners today, and Solr seems like overkill. Here's one to solve your problem (assuming no header row):

    sort -t\; -k2 < test.csv | head -50
    

    Add -n if you need the second field sorted numerically instead of alphabetically.

提交回复
热议问题