3

I'm trying to find a command line editor (or vim plugin) for large CSV or TSV files that will fix the width of cells and keep the row and column headers in view so I can move between cells and edit data. Basically something like the old DOS versions of Lotus 123 or Quattro Pro.

I find myself continually doing quick fixes in tabular data and don't want to fire up Calc every single time I want to change a few cells in column 32. I am not looking for perl/awk solutions since most of the fixes are one-off spelling/case data entry errors.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
hurfdurf
  • 943
  • 8
  • 11

3 Answers3

3

Take a look onto sc or Gnu Oleo, the may fit your need's

Also a look onto the Emacs based Spreadsheets may be worth a look

cheerio Steve

Lairsdragon
  • 700
  • 1
  • 5
  • 21
2

Sounds like you could use vim with ts/sw and friends to set up your columns widths, and then :1split to keep headers in view. You can also (assuming your CSV data doesn't have tabs in it already) do something like:

%s/,/\t/g

to switch commas to tabs, and

%s/\t/,/g

to switch them back, since it's easier to format TSV than CSV.

BMDan
  • 7,249
  • 2
  • 23
  • 34
  • 2
    +1 You can do *anything* in Vim ;-). – sleske Jul 15 '10 at 21:29
  • 2
    @sleske, anything? Then why do we fill our machines with thousands of different programs for different purposes. If I've said it once I've said it a billion times - don't exaggerate. – John Gardeniers Jul 15 '10 at 21:41
  • 1
    As far as I know, http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/classics/eliza/emacs/doctor.el has never been put into vim. But otherwise, yep! – BMDan Jul 15 '10 at 21:42
  • http://www.vim.org/scripts/script.php?script_id=294 (Align) looks like it could be useful as well. – hurfdurf Jul 16 '10 at 00:13
0

i suggest emeditor through wine

diyism
  • 161
  • 5