column: line too long error












2















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?










share|improve this question





























    2















    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?










    share|improve this question



























      2












      2








      2








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 24 '18 at 8:55









      dessert

      22.4k56198




      22.4k56198










      asked Jun 24 '18 at 6:01









      Qassam MahmoudQassam Mahmoud

      234




      234






















          2 Answers
          2






          active

          oldest

          votes


















          2














          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.






          share|improve this answer
























          • 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



















          0














          I get the same problem and solve it.
          The input file should be ended with newline character 'n'.






          share|improve this answer








          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
















          • 2





            This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

            – karel
            2 hours ago













          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Pablo Bianchi
            48 mins ago











          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
          });


          }
          });














          draft saved

          draft discarded


















          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

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          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.






          share|improve this answer
























          • 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
















          2














          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.






          share|improve this answer
























          • 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














          2












          2








          2







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 24 '18 at 6:21









          YaronYaron

          8,99871940




          8,99871940













          • 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











          • @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













          0














          I get the same problem and solve it.
          The input file should be ended with newline character 'n'.






          share|improve this answer








          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
















          • 2





            This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

            – karel
            2 hours ago













          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Pablo Bianchi
            48 mins ago
















          0














          I get the same problem and solve it.
          The input file should be ended with newline character 'n'.






          share|improve this answer








          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
















          • 2





            This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

            – karel
            2 hours ago













          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Pablo Bianchi
            48 mins ago














          0












          0








          0







          I get the same problem and solve it.
          The input file should be ended with newline character 'n'.






          share|improve this answer








          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          I get the same problem and solve it.
          The input file should be ended with newline character 'n'.







          share|improve this answer








          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 4 hours ago









          Coco ZhaoCoco Zhao

          1




          1




          New contributor




          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Coco Zhao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.








          • 2





            This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

            – karel
            2 hours ago













          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Pablo Bianchi
            48 mins ago














          • 2





            This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

            – karel
            2 hours ago













          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Pablo Bianchi
            48 mins ago








          2




          2





          This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

          – karel
          2 hours ago







          This does not answer the original question, because all the input lines in the example from chrisjean.com/view-csv-data-from-the-command-line in the question already end with the n newline character.

          – karel
          2 hours ago















          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

          – Pablo Bianchi
          48 mins ago





          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

          – Pablo Bianchi
          48 mins ago


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection