[Use the command line to open the server-side csv file in the linux/ubuntu system, and the command line CSV viewer]

In the linux/ubuntu system, use the command line to open the csv file on the server side, and the command line CSV viewer

  • How to create a CSV file from the command line of a Linux/OS X system

  • method 1:

    cat filename.csv
    

    insert image description here

  • But the effect of this method is "not very beautiful". If there is a lot of data, it looks quite eye-catching, so there is a second method.

  • Method 2:

    column -s, -t < filename.csv
    

    insert image description here

  • Method 3:

  • You can also use other tools, such as csvtool, just enter the following command to install

    sudo apt-get install csvtool
    

    Then enter the following command to read:

    csvtool readable filename | view -
    

Guess you like

Origin blog.csdn.net/crist_meng/article/details/123925452