how to add number in each row upto 100,when each row started with particular number?Adding a Column of values...

ESTA Travel not Authorized. Accepted twice before!

Could Europeans in Europe demand protection under UN Declaration on the Rights of Indigenous Peoples?

Redirection operator, standard input and command parameters

Conditional statement in a function for PS1 are not re-evalutated

What is this light passenger prop airplane which crash landed in East Kalimantan, Borneo in 1983?

Killing a star safely

Are there foods that astronauts are explicitly never allowed to eat?

Install suspension forks on non-suspension bike

How to tell readers that I know my story is factually incorrect?

Is it ethical to tell my teaching assistant that I like him?

Does the Bracer of Flying Daggers really let a thief make 4 attacks per round?

Is art a form of communication?

How can electronics on board JWST survive the low operating temperature while it's difficult to survive lunar nights?

Time war story - soldier name lengthens as he travels further from the battle front

Can a creature sustain itself by eating its own severed body parts?

Router restarts after big git push or big file upload

Aren't all schwa sounds literally /ø/?

Why is the forgetful functor representable?

A Real World Example for Divide and Conquer Method

What is the origin of "Wonder begets wisdom?"

How does the Gameboy's memory bank switching work?

3D cursor orientation

Counting multiples of 3 up to a given number

Quickest way to move a line in a text file before another line in a text file?



how to add number in each row upto 100,when each row started with particular number?


Adding a Column of values in a tab delimited fileScript to hang up Asterisk channelsHow to accumulate values of each two rows across a line in linux?How to sum up values of each two rows across their line in linuxAdd column to a CSV file as a function of other two columns, one from other fileEdit specific line of repeating code block using nametagTail Grep - Print surrounding lines until pattern is matchedRemove lines of a file after the N firsts lines but before to integer numberExtract text from bracketsI want to compare two files and get the difference in new file with the changed column number for each row






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















If I have file like this:
1

19

24

26

119

201

230



So I want output like this:



1 2 3 4 .........100

19 20 21 22 .......119

24 25 26 ...........124

119 120 121 .......219

201 202 203.........301

230 231 231 ........ 331



In each row number started with particular number,So I want increment till 100 with gap of 1










share|improve this question







New contributor



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


























    0















    If I have file like this:
    1

    19

    24

    26

    119

    201

    230



    So I want output like this:



    1 2 3 4 .........100

    19 20 21 22 .......119

    24 25 26 ...........124

    119 120 121 .......219

    201 202 203.........301

    230 231 231 ........ 331



    In each row number started with particular number,So I want increment till 100 with gap of 1










    share|improve this question







    New contributor



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






















      0












      0








      0








      If I have file like this:
      1

      19

      24

      26

      119

      201

      230



      So I want output like this:



      1 2 3 4 .........100

      19 20 21 22 .......119

      24 25 26 ...........124

      119 120 121 .......219

      201 202 203.........301

      230 231 231 ........ 331



      In each row number started with particular number,So I want increment till 100 with gap of 1










      share|improve this question







      New contributor



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











      If I have file like this:
      1

      19

      24

      26

      119

      201

      230



      So I want output like this:



      1 2 3 4 .........100

      19 20 21 22 .......119

      24 25 26 ...........124

      119 120 121 .......219

      201 202 203.........301

      230 231 231 ........ 331



      In each row number started with particular number,So I want increment till 100 with gap of 1







      shell awk






      share|improve this question







      New contributor



      daizy123 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 question







      New contributor



      daizy123 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 question




      share|improve this question






      New contributor



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








      asked 26 mins ago









      daizy123daizy123

      1




      1




      New contributor



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




      New contributor




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
























          1 Answer
          1






          active

          oldest

          votes


















          0














          awk '{ for (i=0;i<100;i++) printf("%d ",$1+i); printf("n"); }'


          Smells like homework to me.






          share|improve this answer


























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


            }
            });






            daizy123 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531379%2fhow-to-add-number-in-each-row-upto-100-when-each-row-started-with-particular-num%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









            0














            awk '{ for (i=0;i<100;i++) printf("%d ",$1+i); printf("n"); }'


            Smells like homework to me.






            share|improve this answer




























              0














              awk '{ for (i=0;i<100;i++) printf("%d ",$1+i); printf("n"); }'


              Smells like homework to me.






              share|improve this answer


























                0












                0








                0







                awk '{ for (i=0;i<100;i++) printf("%d ",$1+i); printf("n"); }'


                Smells like homework to me.






                share|improve this answer













                awk '{ for (i=0;i<100;i++) printf("%d ",$1+i); printf("n"); }'


                Smells like homework to me.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 10 mins ago









                icarusicarus

                7,1341 gold badge17 silver badges33 bronze badges




                7,1341 gold badge17 silver badges33 bronze badges






















                    daizy123 is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    daizy123 is a new contributor. Be nice, and check out our Code of Conduct.













                    daizy123 is a new contributor. Be nice, and check out our Code of Conduct.












                    daizy123 is a new contributor. Be nice, and check out our Code of Conduct.
















                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531379%2fhow-to-add-number-in-each-row-upto-100-when-each-row-started-with-particular-num%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...