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

      24.2k670104




      24.2k670104










      asked Jun 24 '18 at 6:01









      Qassam MahmoudQassam Mahmoud

      285




      285






















          1 Answer
          1






          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











          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

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          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

          9,17871940




          9,17871940













          • 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


















          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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?