Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:24:28+00:00 2026-05-17T01:24:28+00:00

Anyone know of a command-line CSV viewer for Linux/OS X? I’m thinking of something

  • 0

Anyone know of a command-line CSV viewer for Linux/OS X? I’m thinking of something like less but that spaces out the columns in a more readable way. (I’d be fine with opening it with OpenOffice Calc or Excel, but that’s way too overpowered for just looking at the data like I need to.) Having horizontal and vertical scrolling would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:24:29+00:00Added an answer on May 17, 2026 at 1:24 am

    You can also use this:

    column -s, -t < somefile.csv | less -#2 -N -S
    

    column is a standard unix program that is very convenient — it finds the appropriate width of each column, and displays the text as a nicely formatted table.

    Note: whenever you have empty fields, you need to put some kind of placeholder in it, otherwise the column gets merged with following columns. The following example demonstrates how to use sed to insert a placeholder:

    $ cat data.csv
    1,2,3,4,5
    1,,,,5
    $ sed 's/,,/, ,/g;s/,,/, ,/g' data.csv | column -s, -t
    1  2  3  4  5
    1           5
    $ cat data.csv
    1,2,3,4,5
    1,,,,5
    $ column -s, -t < data.csv
    1  2  3  4  5
    1  5
    $ sed 's/,,/, ,/g;s/,,/, ,/g' data.csv | column -s, -t
    1  2  3  4  5
    1           5
    

    Note that the substitution of ,, for , , is done twice. If you do it only once, 1,,,4 will become 1, ,,4 since the second comma is matched already.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a linux-compatible command line html formatter? You know, something where
Anyone know of a library that handles parsing arguements passed from the command line
Does anyone know any way from the command line or with subclipse that I
does anyone know a command line based tool that can change the noise gate
Anyone know of a command line utility (or one that can run as a
does anyone know how to watermark video from the Linux command line using a
Does anyone know how to use the command line compiler ('cl' and 'link') in
does anyone know how to run something like the following on a Windows machine
Does anyone know what the command line option is to generate a preprocessed file
Anyone know if it's possible to launch a 64 bit command line from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.