column: line too long error
I'm trying to view the first 5 columns from the terminal following this guide here:
https://chrisjean.com/view-csv-data-from-the-command-line/
When I run
cat rangelast.csv | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S
I get this error:
column: line too long
How can I solve it?
command-line text-processing csv
add a comment |
I'm trying to view the first 5 columns from the terminal following this guide here:
https://chrisjean.com/view-csv-data-from-the-command-line/
When I run
cat rangelast.csv | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S
I get this error:
column: line too long
How can I solve it?
command-line text-processing csv
add a comment |
I'm trying to view the first 5 columns from the terminal following this guide here:
https://chrisjean.com/view-csv-data-from-the-command-line/
When I run
cat rangelast.csv | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S
I get this error:
column: line too long
How can I solve it?
command-line text-processing csv
I'm trying to view the first 5 columns from the terminal following this guide here:
https://chrisjean.com/view-csv-data-from-the-command-line/
When I run
cat rangelast.csv | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S
I get this error:
column: line too long
How can I solve it?
command-line text-processing csv
command-line text-processing csv
edited Jun 24 '18 at 8:55
dessert
24k670104
24k670104
asked Jun 24 '18 at 6:01
Qassam MahmoudQassam Mahmoud
285
285
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
According to this bug report
In the utility source code: column.c
It defines MAXLINELEN as 2048 + 1
If your input contains a line which its length is > 2048 you'll get this error.
In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1049220%2fcolumn-line-too-long-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
According to this bug report
In the utility source code: column.c
It defines MAXLINELEN as 2048 + 1
If your input contains a line which its length is > 2048 you'll get this error.
In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
add a comment |
According to this bug report
In the utility source code: column.c
It defines MAXLINELEN as 2048 + 1
If your input contains a line which its length is > 2048 you'll get this error.
In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
add a comment |
According to this bug report
In the utility source code: column.c
It defines MAXLINELEN as 2048 + 1
If your input contains a line which its length is > 2048 you'll get this error.
In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.
According to this bug report
In the utility source code: column.c
It defines MAXLINELEN as 2048 + 1
If your input contains a line which its length is > 2048 you'll get this error.
In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.
answered Jun 24 '18 at 6:21
YaronYaron
9,11871940
9,11871940
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
add a comment |
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
what 'column' utility should i use ?
– Qassam Mahmoud
Jun 24 '18 at 6:24
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
@QassamMahmoud - this is another question, if you like, you can open a new question, define your input, the desired manipulation on the input/expected output. and asked for help.
– Yaron
Jun 24 '18 at 6:30
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1049220%2fcolumn-line-too-long-error%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