ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
31.17k stars 785 forks source link

Proposal: qsv (Unix column replacement) #141

Open DefaultGen opened 5 months ago

DefaultGen commented 5 months ago

qsv table is much faster than column -t for formatting large amounts of tabular data. Probably not something people need speed from frequently, but helped my use case. xsv didn't work for me due to issues with larger tabular data.

for i in {1..1000}; do cat /proc/mounts >> bigfile; done

time column -t < bigfile
...
real    0m0.326s
user    0m0.248s
sys 0m0.077s

time qsv table --delimiter " " < bigfile
...
real    0m0.126s
user    0m0.042s
sys 0m0.071s

https://github.com/jqnatividad/qsv