【linux/ubuntu 系统中使用命令行打开服务器端的csv文件,命令行CSV查看器】

linux/ubuntu 系统中使用命令行打开服务器端的csv文件,命令行CSV查看器

  • 在Linux / OS X系统的命令行如何CSV文件

  • 方法1:

    cat filename.csv
    

    在这里插入图片描述

  • 但是这种方法出来的效果“不太美观”,如果数据比较多,看起来挺费眼的,所以再有第二种方法。

  • 方法2:

    column -s, -t < filename.csv
    

    在这里插入图片描述

  • 方法3:

  • 还可以使用其他工具,例如 csvtool,输入下列指令进行安装即可

    sudo apt-get install csvtool
    

    然后输入下列指令,便可读取:

    csvtool readable filename | view -
    

猜你喜欢

转载自blog.csdn.net/crist_meng/article/details/123925452