Creating a new column in text file

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











up vote
0
down vote

favorite












Let's say I have a text file with the following:



1



3



5



7



9



and I want to paste the following to the right of it while still maintaining the spacing:



23 34 53



22 17 99



(Of course I'm using many more numbers, so I can't just do this manually).
So I want something like this:



1 23 34 53



3 22 17 99



5



7



9



How do I go about doing this? Thanks!










share|improve this question







New contributor




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























    up vote
    0
    down vote

    favorite












    Let's say I have a text file with the following:



    1



    3



    5



    7



    9



    and I want to paste the following to the right of it while still maintaining the spacing:



    23 34 53



    22 17 99



    (Of course I'm using many more numbers, so I can't just do this manually).
    So I want something like this:



    1 23 34 53



    3 22 17 99



    5



    7



    9



    How do I go about doing this? Thanks!










    share|improve this question







    New contributor




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





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Let's say I have a text file with the following:



      1



      3



      5



      7



      9



      and I want to paste the following to the right of it while still maintaining the spacing:



      23 34 53



      22 17 99



      (Of course I'm using many more numbers, so I can't just do this manually).
      So I want something like this:



      1 23 34 53



      3 22 17 99



      5



      7



      9



      How do I go about doing this? Thanks!










      share|improve this question







      New contributor




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











      Let's say I have a text file with the following:



      1



      3



      5



      7



      9



      and I want to paste the following to the right of it while still maintaining the spacing:



      23 34 53



      22 17 99



      (Of course I'm using many more numbers, so I can't just do this manually).
      So I want something like this:



      1 23 34 53



      3 22 17 99



      5



      7



      9



      How do I go about doing this? Thanks!







      scripting






      share|improve this question







      New contributor




      apple 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




      apple 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




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









      asked 11 mins ago









      apple

      11




      11




      New contributor




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





      New contributor





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






      apple 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

















          up vote
          0
          down vote













          You can use the paste command to merge columns from files as in:



          f1:



          1
          3
          5
          7
          9


          f2:



          23 34 53
          22 17 99


          Then the command paste f1 f2 will produce:



          1 23 34 53
          3 22 17 99
          5
          7
          9


          With a tab character between the portions pasted from each file unless you change the delimiter with the -d option.





          share








          New contributor




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

















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            apple 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%2f478158%2fcreating-a-new-column-in-text-file%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            You can use the paste command to merge columns from files as in:



            f1:



            1
            3
            5
            7
            9


            f2:



            23 34 53
            22 17 99


            Then the command paste f1 f2 will produce:



            1 23 34 53
            3 22 17 99
            5
            7
            9


            With a tab character between the portions pasted from each file unless you change the delimiter with the -d option.





            share








            New contributor




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





















              up vote
              0
              down vote













              You can use the paste command to merge columns from files as in:



              f1:



              1
              3
              5
              7
              9


              f2:



              23 34 53
              22 17 99


              Then the command paste f1 f2 will produce:



              1 23 34 53
              3 22 17 99
              5
              7
              9


              With a tab character between the portions pasted from each file unless you change the delimiter with the -d option.





              share








              New contributor




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



















                up vote
                0
                down vote










                up vote
                0
                down vote









                You can use the paste command to merge columns from files as in:



                f1:



                1
                3
                5
                7
                9


                f2:



                23 34 53
                22 17 99


                Then the command paste f1 f2 will produce:



                1 23 34 53
                3 22 17 99
                5
                7
                9


                With a tab character between the portions pasted from each file unless you change the delimiter with the -d option.





                share








                New contributor




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









                You can use the paste command to merge columns from files as in:



                f1:



                1
                3
                5
                7
                9


                f2:



                23 34 53
                22 17 99


                Then the command paste f1 f2 will produce:



                1 23 34 53
                3 22 17 99
                5
                7
                9


                With a tab character between the portions pasted from each file unless you change the delimiter with the -d option.






                share








                New contributor




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








                share


                share






                New contributor




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









                answered 4 mins ago









                Whilom Chime

                1012




                1012




                New contributor




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





                New contributor





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






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




















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









                     

                    draft saved


                    draft discarded


















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












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











                    apple 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%2f478158%2fcreating-a-new-column-in-text-file%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay