Command line friendly spreadsheetsCommand-line-friendly full-text indexing?Is there a robust command line tool for processing csv files?Using CSV line as command parametersHow to adjust numeric fields in a text fileA unix command to truncate each line of a fileIs there a command line utility to transpose a csv-file?User-friendly command to list all users on Ubuntu system?Terminal-based spreadsheets and wordprocessor?How to search for the word stored in the hold space with sed?transform multi multi line to multi on line file
Draw simple lines in Inkscape
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
What is the command to reset a PC without deleting any files
Is there a minimum number of transactions in a block?
Can town administrative "code" overule state laws like those forbidding trespassing?
Why is this code 6.5x slower with optimizations enabled?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
XeLaTeX and pdfLaTeX ignore hyphenation
Email Account under attack (really) - anything I can do?
What are these boxed doors outside store fronts in New York?
What typically incentivizes a professor to change jobs to a lower ranking university?
How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)
How to determine if window is maximised or minimised from bash script
Can Medicine checks be used, with decent rolls, to completely mitigate the risk of death from ongoing damage?
Non-Jewish family in an Orthodox Jewish Wedding
Chess with symmetric move-square
Infinite past with a beginning?
Are tax years 2016 & 2017 back taxes deductible for tax year 2018?
My colleague's body is amazing
Can a German sentence have two subjects?
Concept of linear mappings are confusing me
Why was the small council so happy for Tyrion to become the Master of Coin?
Is there a familial term for apples and pears?
Command line friendly spreadsheets
Command-line-friendly full-text indexing?Is there a robust command line tool for processing csv files?Using CSV line as command parametersHow to adjust numeric fields in a text fileA unix command to truncate each line of a fileIs there a command line utility to transpose a csv-file?User-friendly command to list all users on Ubuntu system?Terminal-based spreadsheets and wordprocessor?How to search for the word stored in the hold space with sed?transform multi multi line to multi on line file
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Does such a thing exist? Text-based spreadsheets that display well in a CLI environment. I'm aware that I could cat foobar.csv
and do as I please, but it isn't particularly practical or attractive. I cannot imagine it would be hard to format a table, and maybe follow certain rules (math?) as well.
Emacs has org-mode
which handles text-based tables quite well, and allows exporting to multiple formats. However, one must use Emacs! Which as a Vim user I would prefer to avoid.
command-line text-processing csv
|
show 2 more comments
Does such a thing exist? Text-based spreadsheets that display well in a CLI environment. I'm aware that I could cat foobar.csv
and do as I please, but it isn't particularly practical or attractive. I cannot imagine it would be hard to format a table, and maybe follow certain rules (math?) as well.
Emacs has org-mode
which handles text-based tables quite well, and allows exporting to multiple formats. However, one must use Emacs! Which as a Vim user I would prefer to avoid.
command-line text-processing csv
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
1
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09
|
show 2 more comments
Does such a thing exist? Text-based spreadsheets that display well in a CLI environment. I'm aware that I could cat foobar.csv
and do as I please, but it isn't particularly practical or attractive. I cannot imagine it would be hard to format a table, and maybe follow certain rules (math?) as well.
Emacs has org-mode
which handles text-based tables quite well, and allows exporting to multiple formats. However, one must use Emacs! Which as a Vim user I would prefer to avoid.
command-line text-processing csv
Does such a thing exist? Text-based spreadsheets that display well in a CLI environment. I'm aware that I could cat foobar.csv
and do as I please, but it isn't particularly practical or attractive. I cannot imagine it would be hard to format a table, and maybe follow certain rules (math?) as well.
Emacs has org-mode
which handles text-based tables quite well, and allows exporting to multiple formats. However, one must use Emacs! Which as a Vim user I would prefer to avoid.
command-line text-processing csv
command-line text-processing csv
asked Nov 9 '11 at 7:03
SergeySergey
10615
10615
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
1
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09
|
show 2 more comments
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
1
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
1
1
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09
|
show 2 more comments
6 Answers
6
active
oldest
votes
There's sc
and oleo
(neither of which I have any experience with). Being a GNU project, however, oleo's handling is more likely to be emacsesque than vimmy.
6
According to the article I linked to,sc
looks much more vimmy thanoleo
does.
– cjm
Nov 9 '11 at 7:47
I just gavesc
a try. It doesn't seem to play well withscreen
, at least for me. I will give it some more time and see if I can deal with it.vi
navigation, so far, is a blessing.
– Sergey
Nov 10 '11 at 17:11
add a comment |
There's also slsc
that is based on sc
but with a friendlier user interface.
However it has as dependency libslang1
that is not actively developed (libslang2
is the current developed version) so the program itself is no longer developed.
Me and my piano teacher are planning to port it to libslang2
in order to see it back in repositories. :)
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
add a comment |
There is an Org-Mode port to Vim.
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
add a comment |
If you can find an old dos spread sheet ( for example 1-2-3 ), you should be able to run it via dosemu.
Bluntly if you search the web for downloadable dos spreadsheets you would find what I call "I-don't-care-ware." Stuff that it would be technically unlawful to download, but generally the copyright holder doesn't care.
One which you would be safe to try is VisiCalc.
add a comment |
There is a Vim script called Spreadsheet.vim (and on github). From the description section of the linked page:
This script lets you use vim as a spreadsheet, adding arithmetic calculations to your text files.
Useful for bills, expenses, ratings and other numeric text templates.
It provides three main functions:
Get("cell")
Set("cell", "value")
Calculate("operation")
Detailed instructions and examples are included in the script file.
I have not yet compared this to the solutions mentioned by others. I suspect it has the disadvantage of not being as powerful as a specific spreadsheet program in some ways; but since it lets you use Vim itself, you receive another kind of powerful proportional to the greatness of your Vimfoo.
One caveat is that it does not seem very portable:
It uses 'bc' Linux OS comand for the Calculate function.
However, since you asked this on U&L.SE, maybe that is not a problem for you.
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
add a comment |
I use and recommend visidata.
It plays well with the shell – e.g. you can stick it at the end of your pipe. If
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah
produces a tsv, then
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah|vd
makes that tsv into an interactive (if you think ncurses is interactive) spreadsheet with plotting and pivot tables and mouse support :)
You can add columns with Python expressions referring to other columns, or extend it with plugins. You can diff two csv's.
You can also save your keypresses in vd to a file and then re-run them at a later stage – I've got some scripts to re-run an analysis and then run vd on it and immediately set all columns to floats and open the frequency table so I can see if I managed to lower the median this time.
The docs and tutorials from the home page are pretty good, but if you learn better by watching than reading, there's a series of visdata youtube tutorials and showcases by the author.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f24245%2fcommand-line-friendly-spreadsheets%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
There's sc
and oleo
(neither of which I have any experience with). Being a GNU project, however, oleo's handling is more likely to be emacsesque than vimmy.
6
According to the article I linked to,sc
looks much more vimmy thanoleo
does.
– cjm
Nov 9 '11 at 7:47
I just gavesc
a try. It doesn't seem to play well withscreen
, at least for me. I will give it some more time and see if I can deal with it.vi
navigation, so far, is a blessing.
– Sergey
Nov 10 '11 at 17:11
add a comment |
There's sc
and oleo
(neither of which I have any experience with). Being a GNU project, however, oleo's handling is more likely to be emacsesque than vimmy.
6
According to the article I linked to,sc
looks much more vimmy thanoleo
does.
– cjm
Nov 9 '11 at 7:47
I just gavesc
a try. It doesn't seem to play well withscreen
, at least for me. I will give it some more time and see if I can deal with it.vi
navigation, so far, is a blessing.
– Sergey
Nov 10 '11 at 17:11
add a comment |
There's sc
and oleo
(neither of which I have any experience with). Being a GNU project, however, oleo's handling is more likely to be emacsesque than vimmy.
There's sc
and oleo
(neither of which I have any experience with). Being a GNU project, however, oleo's handling is more likely to be emacsesque than vimmy.
edited Nov 9 '11 at 7:46
cjm
20.9k67173
20.9k67173
answered Nov 9 '11 at 7:19


Ulrich SchwarzUlrich Schwarz
10.1k13148
10.1k13148
6
According to the article I linked to,sc
looks much more vimmy thanoleo
does.
– cjm
Nov 9 '11 at 7:47
I just gavesc
a try. It doesn't seem to play well withscreen
, at least for me. I will give it some more time and see if I can deal with it.vi
navigation, so far, is a blessing.
– Sergey
Nov 10 '11 at 17:11
add a comment |
6
According to the article I linked to,sc
looks much more vimmy thanoleo
does.
– cjm
Nov 9 '11 at 7:47
I just gavesc
a try. It doesn't seem to play well withscreen
, at least for me. I will give it some more time and see if I can deal with it.vi
navigation, so far, is a blessing.
– Sergey
Nov 10 '11 at 17:11
6
6
According to the article I linked to,
sc
looks much more vimmy than oleo
does.– cjm
Nov 9 '11 at 7:47
According to the article I linked to,
sc
looks much more vimmy than oleo
does.– cjm
Nov 9 '11 at 7:47
I just gave
sc
a try. It doesn't seem to play well with screen
, at least for me. I will give it some more time and see if I can deal with it. vi
navigation, so far, is a blessing.– Sergey
Nov 10 '11 at 17:11
I just gave
sc
a try. It doesn't seem to play well with screen
, at least for me. I will give it some more time and see if I can deal with it. vi
navigation, so far, is a blessing.– Sergey
Nov 10 '11 at 17:11
add a comment |
There's also slsc
that is based on sc
but with a friendlier user interface.
However it has as dependency libslang1
that is not actively developed (libslang2
is the current developed version) so the program itself is no longer developed.
Me and my piano teacher are planning to port it to libslang2
in order to see it back in repositories. :)
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
add a comment |
There's also slsc
that is based on sc
but with a friendlier user interface.
However it has as dependency libslang1
that is not actively developed (libslang2
is the current developed version) so the program itself is no longer developed.
Me and my piano teacher are planning to port it to libslang2
in order to see it back in repositories. :)
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
add a comment |
There's also slsc
that is based on sc
but with a friendlier user interface.
However it has as dependency libslang1
that is not actively developed (libslang2
is the current developed version) so the program itself is no longer developed.
Me and my piano teacher are planning to port it to libslang2
in order to see it back in repositories. :)
There's also slsc
that is based on sc
but with a friendlier user interface.
However it has as dependency libslang1
that is not actively developed (libslang2
is the current developed version) so the program itself is no longer developed.
Me and my piano teacher are planning to port it to libslang2
in order to see it back in repositories. :)
edited Mar 23 '13 at 0:25
Kazark
6002829
6002829
answered Nov 14 '11 at 22:07
Matteo CeccarelloMatteo Ceccarello
6814
6814
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
add a comment |
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
2
2
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
You and your piano teacher, huh? How's that going?
– Kazark
Mar 22 '13 at 23:03
add a comment |
There is an Org-Mode port to Vim.
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
add a comment |
There is an Org-Mode port to Vim.
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
add a comment |
There is an Org-Mode port to Vim.
There is an Org-Mode port to Vim.
edited Mar 23 '13 at 0:25
Kazark
6002829
6002829
answered Nov 9 '11 at 21:53
Mike FisherMike Fisher
111
111
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
add a comment |
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
Can you add more detail?
– Kazark
Mar 22 '13 at 23:02
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
@Kazark: Thanks for cleaning up my link! The original question indicated familiarity with Org Mode, particularly with Org Mode's Spreadsheet, but was not enthusiastic about Emacs. I wanted to share the Vim alternative.
– Mike Fisher
Mar 30 '13 at 19:15
add a comment |
If you can find an old dos spread sheet ( for example 1-2-3 ), you should be able to run it via dosemu.
Bluntly if you search the web for downloadable dos spreadsheets you would find what I call "I-don't-care-ware." Stuff that it would be technically unlawful to download, but generally the copyright holder doesn't care.
One which you would be safe to try is VisiCalc.
add a comment |
If you can find an old dos spread sheet ( for example 1-2-3 ), you should be able to run it via dosemu.
Bluntly if you search the web for downloadable dos spreadsheets you would find what I call "I-don't-care-ware." Stuff that it would be technically unlawful to download, but generally the copyright holder doesn't care.
One which you would be safe to try is VisiCalc.
add a comment |
If you can find an old dos spread sheet ( for example 1-2-3 ), you should be able to run it via dosemu.
Bluntly if you search the web for downloadable dos spreadsheets you would find what I call "I-don't-care-ware." Stuff that it would be technically unlawful to download, but generally the copyright holder doesn't care.
One which you would be safe to try is VisiCalc.
If you can find an old dos spread sheet ( for example 1-2-3 ), you should be able to run it via dosemu.
Bluntly if you search the web for downloadable dos spreadsheets you would find what I call "I-don't-care-ware." Stuff that it would be technically unlawful to download, but generally the copyright holder doesn't care.
One which you would be safe to try is VisiCalc.
answered Nov 9 '11 at 9:22
HandyGandyHandyGandy
1,2161527
1,2161527
add a comment |
add a comment |
There is a Vim script called Spreadsheet.vim (and on github). From the description section of the linked page:
This script lets you use vim as a spreadsheet, adding arithmetic calculations to your text files.
Useful for bills, expenses, ratings and other numeric text templates.
It provides three main functions:
Get("cell")
Set("cell", "value")
Calculate("operation")
Detailed instructions and examples are included in the script file.
I have not yet compared this to the solutions mentioned by others. I suspect it has the disadvantage of not being as powerful as a specific spreadsheet program in some ways; but since it lets you use Vim itself, you receive another kind of powerful proportional to the greatness of your Vimfoo.
One caveat is that it does not seem very portable:
It uses 'bc' Linux OS comand for the Calculate function.
However, since you asked this on U&L.SE, maybe that is not a problem for you.
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
add a comment |
There is a Vim script called Spreadsheet.vim (and on github). From the description section of the linked page:
This script lets you use vim as a spreadsheet, adding arithmetic calculations to your text files.
Useful for bills, expenses, ratings and other numeric text templates.
It provides three main functions:
Get("cell")
Set("cell", "value")
Calculate("operation")
Detailed instructions and examples are included in the script file.
I have not yet compared this to the solutions mentioned by others. I suspect it has the disadvantage of not being as powerful as a specific spreadsheet program in some ways; but since it lets you use Vim itself, you receive another kind of powerful proportional to the greatness of your Vimfoo.
One caveat is that it does not seem very portable:
It uses 'bc' Linux OS comand for the Calculate function.
However, since you asked this on U&L.SE, maybe that is not a problem for you.
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
add a comment |
There is a Vim script called Spreadsheet.vim (and on github). From the description section of the linked page:
This script lets you use vim as a spreadsheet, adding arithmetic calculations to your text files.
Useful for bills, expenses, ratings and other numeric text templates.
It provides three main functions:
Get("cell")
Set("cell", "value")
Calculate("operation")
Detailed instructions and examples are included in the script file.
I have not yet compared this to the solutions mentioned by others. I suspect it has the disadvantage of not being as powerful as a specific spreadsheet program in some ways; but since it lets you use Vim itself, you receive another kind of powerful proportional to the greatness of your Vimfoo.
One caveat is that it does not seem very portable:
It uses 'bc' Linux OS comand for the Calculate function.
However, since you asked this on U&L.SE, maybe that is not a problem for you.
There is a Vim script called Spreadsheet.vim (and on github). From the description section of the linked page:
This script lets you use vim as a spreadsheet, adding arithmetic calculations to your text files.
Useful for bills, expenses, ratings and other numeric text templates.
It provides three main functions:
Get("cell")
Set("cell", "value")
Calculate("operation")
Detailed instructions and examples are included in the script file.
I have not yet compared this to the solutions mentioned by others. I suspect it has the disadvantage of not being as powerful as a specific spreadsheet program in some ways; but since it lets you use Vim itself, you receive another kind of powerful proportional to the greatness of your Vimfoo.
One caveat is that it does not seem very portable:
It uses 'bc' Linux OS comand for the Calculate function.
However, since you asked this on U&L.SE, maybe that is not a problem for you.
answered Mar 22 '13 at 23:13
KazarkKazark
6002829
6002829
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
add a comment |
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
I tried this on Windows and yes, I ran into the 'bc' issue. Even if this did work, from what I can tell, this is extremely verbose and limited in terms of what it can do. It's more like adding math in a horribly verbose manner to Vim than doing anything like a spreadsheet.
– horta
Aug 25 '16 at 17:53
add a comment |
I use and recommend visidata.
It plays well with the shell – e.g. you can stick it at the end of your pipe. If
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah
produces a tsv, then
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah|vd
makes that tsv into an interactive (if you think ncurses is interactive) spreadsheet with plotting and pivot tables and mouse support :)
You can add columns with Python expressions referring to other columns, or extend it with plugins. You can diff two csv's.
You can also save your keypresses in vd to a file and then re-run them at a later stage – I've got some scripts to re-run an analysis and then run vd on it and immediately set all columns to floats and open the frequency table so I can see if I managed to lower the median this time.
The docs and tutorials from the home page are pretty good, but if you learn better by watching than reading, there's a series of visdata youtube tutorials and showcases by the author.
add a comment |
I use and recommend visidata.
It plays well with the shell – e.g. you can stick it at the end of your pipe. If
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah
produces a tsv, then
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah|vd
makes that tsv into an interactive (if you think ncurses is interactive) spreadsheet with plotting and pivot tables and mouse support :)
You can add columns with Python expressions referring to other columns, or extend it with plugins. You can diff two csv's.
You can also save your keypresses in vd to a file and then re-run them at a later stage – I've got some scripts to re-run an analysis and then run vd on it and immediately set all columns to floats and open the frequency table so I can see if I managed to lower the median this time.
The docs and tutorials from the home page are pretty good, but if you learn better by watching than reading, there's a series of visdata youtube tutorials and showcases by the author.
add a comment |
I use and recommend visidata.
It plays well with the shell – e.g. you can stick it at the end of your pipe. If
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah
produces a tsv, then
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah|vd
makes that tsv into an interactive (if you think ncurses is interactive) spreadsheet with plotting and pivot tables and mouse support :)
You can add columns with Python expressions referring to other columns, or extend it with plugins. You can diff two csv's.
You can also save your keypresses in vd to a file and then re-run them at a later stage – I've got some scripts to re-run an analysis and then run vd on it and immediately set all columns to floats and open the frequency table so I can see if I managed to lower the median this time.
The docs and tutorials from the home page are pretty good, but if you learn better by watching than reading, there's a series of visdata youtube tutorials and showcases by the author.
I use and recommend visidata.
It plays well with the shell – e.g. you can stick it at the end of your pipe. If
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah
produces a tsv, then
bzcat foo.bz2|sort|uniq -c|sort -nr | awk -f munge.awk |blah|vd
makes that tsv into an interactive (if you think ncurses is interactive) spreadsheet with plotting and pivot tables and mouse support :)
You can add columns with Python expressions referring to other columns, or extend it with plugins. You can diff two csv's.
You can also save your keypresses in vd to a file and then re-run them at a later stage – I've got some scripts to re-run an analysis and then run vd on it and immediately set all columns to floats and open the frequency table so I can see if I managed to lower the median this time.
The docs and tutorials from the home page are pretty good, but if you learn better by watching than reading, there's a series of visdata youtube tutorials and showcases by the author.
answered 2 days ago


unhammerunhammer
17211
17211
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f24245%2fcommand-line-friendly-spreadsheets%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is not practical or attractive? Do you need to use formulars, do you like to do interactive inserts? What do you need?
– user unknown
Nov 9 '11 at 16:39
@userunknown The readability of comma or tab separated values clearly suffers unless each value is of same width as all others.
– Sergey
Nov 9 '11 at 17:59
1
are you looking for read-write access to spreadsheets, or read-only access?
– Tim Kennedy
Nov 9 '11 at 21:51
@TimKennedy Ideally something that can replace Excel for basic tasks, but something that can output a spreadsheet with decent formatting would be great.
– Sergey
Nov 10 '11 at 17:10
@Sergey: Well - the readability is fine if you use tabs, and all values fall into the same length-range in multiples of 8, to be a bit more precise. Tabs where invented for this purpose.
– user unknown
Nov 10 '11 at 19:09