Adding new line after every Nth occurrence of delimiter [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite













This question already has an answer here:



  • How to process a multi column text file to get another multi column text file?

    7 answers



I have file roll.txt with below data in comma delimited format without any newline.




'123456789','987651234','129873645','213456789','987612345','543216789','432156789','876543291','213465789','542637819','123456','23456','22234','3456','7890543','34567891,'2345','567'




I need to insert a New Line after every 6th occurrence of comma delimiter along with no comma at the end of each line.



Below is the expected output:




'123456789','987651234','129873645','213456789','987612345','543216789'
'432156789','876543291','213465789','542637819','123456','23456'
'22234','3456','7890543','34567891,'2345','567'




I am using below sed command which is not working.



sed 's/[^,]//g'






share|improve this question













marked as duplicate by Sundeep, Romeo Ninov, Jeff Schaller, thrig, G-Man May 29 at 5:03


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    2
    down vote

    favorite













    This question already has an answer here:



    • How to process a multi column text file to get another multi column text file?

      7 answers



    I have file roll.txt with below data in comma delimited format without any newline.




    '123456789','987651234','129873645','213456789','987612345','543216789','432156789','876543291','213465789','542637819','123456','23456','22234','3456','7890543','34567891,'2345','567'




    I need to insert a New Line after every 6th occurrence of comma delimiter along with no comma at the end of each line.



    Below is the expected output:




    '123456789','987651234','129873645','213456789','987612345','543216789'
    '432156789','876543291','213465789','542637819','123456','23456'
    '22234','3456','7890543','34567891,'2345','567'




    I am using below sed command which is not working.



    sed 's/[^,]//g'






    share|improve this question













    marked as duplicate by Sundeep, Romeo Ninov, Jeff Schaller, thrig, G-Man May 29 at 5:03


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite












      This question already has an answer here:



      • How to process a multi column text file to get another multi column text file?

        7 answers



      I have file roll.txt with below data in comma delimited format without any newline.




      '123456789','987651234','129873645','213456789','987612345','543216789','432156789','876543291','213465789','542637819','123456','23456','22234','3456','7890543','34567891,'2345','567'




      I need to insert a New Line after every 6th occurrence of comma delimiter along with no comma at the end of each line.



      Below is the expected output:




      '123456789','987651234','129873645','213456789','987612345','543216789'
      '432156789','876543291','213465789','542637819','123456','23456'
      '22234','3456','7890543','34567891,'2345','567'




      I am using below sed command which is not working.



      sed 's/[^,]//g'






      share|improve this question














      This question already has an answer here:



      • How to process a multi column text file to get another multi column text file?

        7 answers



      I have file roll.txt with below data in comma delimited format without any newline.




      '123456789','987651234','129873645','213456789','987612345','543216789','432156789','876543291','213465789','542637819','123456','23456','22234','3456','7890543','34567891,'2345','567'




      I need to insert a New Line after every 6th occurrence of comma delimiter along with no comma at the end of each line.



      Below is the expected output:




      '123456789','987651234','129873645','213456789','987612345','543216789'
      '432156789','876543291','213465789','542637819','123456','23456'
      '22234','3456','7890543','34567891,'2345','567'




      I am using below sed command which is not working.



      sed 's/[^,]//g'




      This question already has an answer here:



      • How to process a multi column text file to get another multi column text file?

        7 answers









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 28 at 4:57









      αғsнιη

      14.7k82361




      14.7k82361









      asked May 27 at 22:27









      Praveen Verma

      2316




      2316




      marked as duplicate by Sundeep, Romeo Ninov, Jeff Schaller, thrig, G-Man May 29 at 5:03


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Sundeep, Romeo Ninov, Jeff Schaller, thrig, G-Man May 29 at 5:03


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote













          With tr&paste:



          tr ',' 'n' <infile |paste -sd',,,,,n'


          for more readability and understandable:



          tr ',' 'n' <infile |paste --serial --delimiters=',,,,,n'


          In such a case when you wanted to add a NewLine at every say, N=100 position, then you may not prefer to input 99 commas ',,,,,,,,,, ... ,n'; instead let printf generate it for you with brace-expansion.



          tr ',' 'n' <infile |paste -sd $(printf '%.1s' ,1..99)'n'


          from man paste:




          -d, --delimiters=LIST
          reuse characters from LIST instead of TABs

          -s, --serial
          paste one file at a time instead of in parallel





          share|improve this answer























          • paste -d, - - - - - - and pr -6ats, would work too
            – Sundeep
            May 28 at 6:05











          • @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
            – Î±Ò“sнιη
            May 28 at 6:33











          • good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
            – Sundeep
            May 28 at 7:53

















          up vote
          1
          down vote













          At least with GNU sed and assuming your fields cannot contain embedded comma separators, you could do



          sed 's/,/n/6; P; D' roll.txt


          which repeatedly attempts to replace the 6th comma with a newline, print, and then delete the portion of pattern space up to the newline.



          NOTE: it is not necessary to implement an explicit labelled test/branch, since the D command implicitly "restarts the cycle" on the remainder of the line:




          D
          If pattern space contains no newline, start a normal new cycle
          as if the d command was issued. Otherwise, delete text in the pattern
          space up to the first newline, and restart cycle with the resultant
          pattern space, without reading a new line of input
          .




          (credit to @RakeshSharma for clarifying this).



          Ex.



          sed 's/,/n/6; P; D' roll.txt 
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'



          Alternatively, with Perl's Text::CSV module:



          perl -MText::CSV -ne '
          BEGIN$p = Text::CSV->new()
          @fields = $p->fields() if $p->parse($_);
          do
          print join ",", splice @fields, 0, 6; print "n";
          while @fields
          ' roll.txt
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'





          share|improve this answer























          • The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
            – Rakesh Sharma
            May 28 at 9:05

















          up vote
          0
          down vote













          A variation on αғsнιη's answer:



          $ tr ',' 'n' <file | paste -d, - - - - - -
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'


          This assumes that none of the fields have embedded commas in them.



          If the input does not have a multiple of six fields, you may get output like



          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'
          hello,world,,,,





          share|improve this answer























          • this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
            – Î±Ò“sнιη
            May 28 at 7:44











          • @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
            – Kusalananda
            May 28 at 7:49

















          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          With tr&paste:



          tr ',' 'n' <infile |paste -sd',,,,,n'


          for more readability and understandable:



          tr ',' 'n' <infile |paste --serial --delimiters=',,,,,n'


          In such a case when you wanted to add a NewLine at every say, N=100 position, then you may not prefer to input 99 commas ',,,,,,,,,, ... ,n'; instead let printf generate it for you with brace-expansion.



          tr ',' 'n' <infile |paste -sd $(printf '%.1s' ,1..99)'n'


          from man paste:




          -d, --delimiters=LIST
          reuse characters from LIST instead of TABs

          -s, --serial
          paste one file at a time instead of in parallel





          share|improve this answer























          • paste -d, - - - - - - and pr -6ats, would work too
            – Sundeep
            May 28 at 6:05











          • @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
            – Î±Ò“sнιη
            May 28 at 6:33











          • good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
            – Sundeep
            May 28 at 7:53














          up vote
          2
          down vote













          With tr&paste:



          tr ',' 'n' <infile |paste -sd',,,,,n'


          for more readability and understandable:



          tr ',' 'n' <infile |paste --serial --delimiters=',,,,,n'


          In such a case when you wanted to add a NewLine at every say, N=100 position, then you may not prefer to input 99 commas ',,,,,,,,,, ... ,n'; instead let printf generate it for you with brace-expansion.



          tr ',' 'n' <infile |paste -sd $(printf '%.1s' ,1..99)'n'


          from man paste:




          -d, --delimiters=LIST
          reuse characters from LIST instead of TABs

          -s, --serial
          paste one file at a time instead of in parallel





          share|improve this answer























          • paste -d, - - - - - - and pr -6ats, would work too
            – Sundeep
            May 28 at 6:05











          • @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
            – Î±Ò“sнιη
            May 28 at 6:33











          • good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
            – Sundeep
            May 28 at 7:53












          up vote
          2
          down vote










          up vote
          2
          down vote









          With tr&paste:



          tr ',' 'n' <infile |paste -sd',,,,,n'


          for more readability and understandable:



          tr ',' 'n' <infile |paste --serial --delimiters=',,,,,n'


          In such a case when you wanted to add a NewLine at every say, N=100 position, then you may not prefer to input 99 commas ',,,,,,,,,, ... ,n'; instead let printf generate it for you with brace-expansion.



          tr ',' 'n' <infile |paste -sd $(printf '%.1s' ,1..99)'n'


          from man paste:




          -d, --delimiters=LIST
          reuse characters from LIST instead of TABs

          -s, --serial
          paste one file at a time instead of in parallel





          share|improve this answer















          With tr&paste:



          tr ',' 'n' <infile |paste -sd',,,,,n'


          for more readability and understandable:



          tr ',' 'n' <infile |paste --serial --delimiters=',,,,,n'


          In such a case when you wanted to add a NewLine at every say, N=100 position, then you may not prefer to input 99 commas ',,,,,,,,,, ... ,n'; instead let printf generate it for you with brace-expansion.



          tr ',' 'n' <infile |paste -sd $(printf '%.1s' ,1..99)'n'


          from man paste:




          -d, --delimiters=LIST
          reuse characters from LIST instead of TABs

          -s, --serial
          paste one file at a time instead of in parallel






          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited May 28 at 8:43


























          answered May 28 at 5:38









          αғsнιη

          14.7k82361




          14.7k82361











          • paste -d, - - - - - - and pr -6ats, would work too
            – Sundeep
            May 28 at 6:05











          • @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
            – Î±Ò“sнιη
            May 28 at 6:33











          • good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
            – Sundeep
            May 28 at 7:53
















          • paste -d, - - - - - - and pr -6ats, would work too
            – Sundeep
            May 28 at 6:05











          • @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
            – Î±Ò“sнιη
            May 28 at 6:33











          • good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
            – Sundeep
            May 28 at 7:53















          paste -d, - - - - - - and pr -6ats, would work too
          – Sundeep
          May 28 at 6:05





          paste -d, - - - - - - and pr -6ats, would work too
          – Sundeep
          May 28 at 6:05













          @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
          – Î±Ò“sнιη
          May 28 at 6:33





          @Sundeep your tr ...| pr -6ats, does but not tr ...| paste -d, - - - - - -, also I suggest you post that as an answer instead of a comment.
          – Î±Ò“sнιη
          May 28 at 6:33













          good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
          – Sundeep
          May 28 at 7:53




          good point about trailing commas, forgot about that.. anyway, didn't add an answer as I feel the question is duplicate..
          – Sundeep
          May 28 at 7:53












          up vote
          1
          down vote













          At least with GNU sed and assuming your fields cannot contain embedded comma separators, you could do



          sed 's/,/n/6; P; D' roll.txt


          which repeatedly attempts to replace the 6th comma with a newline, print, and then delete the portion of pattern space up to the newline.



          NOTE: it is not necessary to implement an explicit labelled test/branch, since the D command implicitly "restarts the cycle" on the remainder of the line:




          D
          If pattern space contains no newline, start a normal new cycle
          as if the d command was issued. Otherwise, delete text in the pattern
          space up to the first newline, and restart cycle with the resultant
          pattern space, without reading a new line of input
          .




          (credit to @RakeshSharma for clarifying this).



          Ex.



          sed 's/,/n/6; P; D' roll.txt 
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'



          Alternatively, with Perl's Text::CSV module:



          perl -MText::CSV -ne '
          BEGIN$p = Text::CSV->new()
          @fields = $p->fields() if $p->parse($_);
          do
          print join ",", splice @fields, 0, 6; print "n";
          while @fields
          ' roll.txt
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'





          share|improve this answer























          • The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
            – Rakesh Sharma
            May 28 at 9:05














          up vote
          1
          down vote













          At least with GNU sed and assuming your fields cannot contain embedded comma separators, you could do



          sed 's/,/n/6; P; D' roll.txt


          which repeatedly attempts to replace the 6th comma with a newline, print, and then delete the portion of pattern space up to the newline.



          NOTE: it is not necessary to implement an explicit labelled test/branch, since the D command implicitly "restarts the cycle" on the remainder of the line:




          D
          If pattern space contains no newline, start a normal new cycle
          as if the d command was issued. Otherwise, delete text in the pattern
          space up to the first newline, and restart cycle with the resultant
          pattern space, without reading a new line of input
          .




          (credit to @RakeshSharma for clarifying this).



          Ex.



          sed 's/,/n/6; P; D' roll.txt 
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'



          Alternatively, with Perl's Text::CSV module:



          perl -MText::CSV -ne '
          BEGIN$p = Text::CSV->new()
          @fields = $p->fields() if $p->parse($_);
          do
          print join ",", splice @fields, 0, 6; print "n";
          while @fields
          ' roll.txt
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'





          share|improve this answer























          • The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
            – Rakesh Sharma
            May 28 at 9:05












          up vote
          1
          down vote










          up vote
          1
          down vote









          At least with GNU sed and assuming your fields cannot contain embedded comma separators, you could do



          sed 's/,/n/6; P; D' roll.txt


          which repeatedly attempts to replace the 6th comma with a newline, print, and then delete the portion of pattern space up to the newline.



          NOTE: it is not necessary to implement an explicit labelled test/branch, since the D command implicitly "restarts the cycle" on the remainder of the line:




          D
          If pattern space contains no newline, start a normal new cycle
          as if the d command was issued. Otherwise, delete text in the pattern
          space up to the first newline, and restart cycle with the resultant
          pattern space, without reading a new line of input
          .




          (credit to @RakeshSharma for clarifying this).



          Ex.



          sed 's/,/n/6; P; D' roll.txt 
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'



          Alternatively, with Perl's Text::CSV module:



          perl -MText::CSV -ne '
          BEGIN$p = Text::CSV->new()
          @fields = $p->fields() if $p->parse($_);
          do
          print join ",", splice @fields, 0, 6; print "n";
          while @fields
          ' roll.txt
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'





          share|improve this answer















          At least with GNU sed and assuming your fields cannot contain embedded comma separators, you could do



          sed 's/,/n/6; P; D' roll.txt


          which repeatedly attempts to replace the 6th comma with a newline, print, and then delete the portion of pattern space up to the newline.



          NOTE: it is not necessary to implement an explicit labelled test/branch, since the D command implicitly "restarts the cycle" on the remainder of the line:




          D
          If pattern space contains no newline, start a normal new cycle
          as if the d command was issued. Otherwise, delete text in the pattern
          space up to the first newline, and restart cycle with the resultant
          pattern space, without reading a new line of input
          .




          (credit to @RakeshSharma for clarifying this).



          Ex.



          sed 's/,/n/6; P; D' roll.txt 
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'



          Alternatively, with Perl's Text::CSV module:



          perl -MText::CSV -ne '
          BEGIN$p = Text::CSV->new()
          @fields = $p->fields() if $p->parse($_);
          do
          print join ",", splice @fields, 0, 6; print "n";
          while @fields
          ' roll.txt
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'






          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited May 29 at 0:48


























          answered May 27 at 23:05









          steeldriver

          31.2k34978




          31.2k34978











          • The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
            – Rakesh Sharma
            May 28 at 9:05
















          • The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
            – Rakesh Sharma
            May 28 at 9:05















          The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
          – Rakesh Sharma
          May 28 at 9:05




          The "test" t command in sed is not really needed. sed 's/,/n/6;P;D' will suffice. The "D" command when operating on a pattern space without newline(s) behaves just like its lowercase counterpart.
          – Rakesh Sharma
          May 28 at 9:05










          up vote
          0
          down vote













          A variation on αғsнιη's answer:



          $ tr ',' 'n' <file | paste -d, - - - - - -
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'


          This assumes that none of the fields have embedded commas in them.



          If the input does not have a multiple of six fields, you may get output like



          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'
          hello,world,,,,





          share|improve this answer























          • this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
            – Î±Ò“sнιη
            May 28 at 7:44











          • @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
            – Kusalananda
            May 28 at 7:49














          up vote
          0
          down vote













          A variation on αғsнιη's answer:



          $ tr ',' 'n' <file | paste -d, - - - - - -
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'


          This assumes that none of the fields have embedded commas in them.



          If the input does not have a multiple of six fields, you may get output like



          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'
          hello,world,,,,





          share|improve this answer























          • this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
            – Î±Ò“sнιη
            May 28 at 7:44











          • @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
            – Kusalananda
            May 28 at 7:49












          up vote
          0
          down vote










          up vote
          0
          down vote









          A variation on αғsнιη's answer:



          $ tr ',' 'n' <file | paste -d, - - - - - -
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'


          This assumes that none of the fields have embedded commas in them.



          If the input does not have a multiple of six fields, you may get output like



          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'
          hello,world,,,,





          share|improve this answer















          A variation on αғsнιη's answer:



          $ tr ',' 'n' <file | paste -d, - - - - - -
          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'


          This assumes that none of the fields have embedded commas in them.



          If the input does not have a multiple of six fields, you may get output like



          '123456789','987651234','129873645','213456789','987612345','543216789'
          '432156789','876543291','213465789','542637819','123456','23456'
          '22234','3456','7890543','34567891,'2345','567'
          hello,world,,,,






          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited May 28 at 7:48


























          answered May 28 at 7:36









          Kusalananda

          102k13199314




          102k13199314











          • this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
            – Î±Ò“sнιη
            May 28 at 7:44











          • @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
            – Kusalananda
            May 28 at 7:49
















          • this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
            – Î±Ò“sнιη
            May 28 at 7:44











          • @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
            – Kusalananda
            May 28 at 7:49















          this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
          – Î±Ò“sнιη
          May 28 at 7:44





          this won't give expected result untill a long line is not multiply of 6, add ,'something' at the end of the line and see the result. you will have training commas (6- number of printed column in last line)
          – Î±Ò“sнιη
          May 28 at 7:44













          @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
          – Kusalananda
          May 28 at 7:49




          @αғsнιη Thanks, I've added a note about this. It may actually be preferable this way since there will always be six comma-separated columns in the output no matter what.
          – Kusalananda
          May 28 at 7:49


          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?