order words beside each other

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











up vote
3
down vote

favorite












how can I re order words beside each other in two columns?
for example:



 Mark 150 John 221 James 134 Sara 9873 


I want it to be:



Mark 150
John 221
James 134
Sara 9873


thank you so much!










share|improve this question







New contributor




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



















  • Are the words in a file?
    – Kusalananda
    1 min ago














up vote
3
down vote

favorite












how can I re order words beside each other in two columns?
for example:



 Mark 150 John 221 James 134 Sara 9873 


I want it to be:



Mark 150
John 221
James 134
Sara 9873


thank you so much!










share|improve this question







New contributor




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



















  • Are the words in a file?
    – Kusalananda
    1 min ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











how can I re order words beside each other in two columns?
for example:



 Mark 150 John 221 James 134 Sara 9873 


I want it to be:



Mark 150
John 221
James 134
Sara 9873


thank you so much!










share|improve this question







New contributor




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











how can I re order words beside each other in two columns?
for example:



 Mark 150 John 221 James 134 Sara 9873 


I want it to be:



Mark 150
John 221
James 134
Sara 9873


thank you so much!







bash






share|improve this question







New contributor




proton 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




proton 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




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









asked 14 mins ago









proton

161




161




New contributor




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





New contributor





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






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











  • Are the words in a file?
    – Kusalananda
    1 min ago
















  • Are the words in a file?
    – Kusalananda
    1 min ago















Are the words in a file?
– Kusalananda
1 min ago




Are the words in a file?
– Kusalananda
1 min ago










1 Answer
1






active

oldest

votes

















up vote
6
down vote













Do it this way:



echo 'Mark 150 John 221 James 134 Sara 9873' | xargs -n2

Mark 150
John 221
James 134
Sara 9873

-n max-args, --max-args=max-args
Use at most max-args arguments per command line.





share|improve this answer
















  • 1




    Wow! very easy, I didn't think about this xargs functionality! thanks!
    – proton
    1 min ago










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



);






proton 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%2f474530%2forder-words-beside-each-other%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
6
down vote













Do it this way:



echo 'Mark 150 John 221 James 134 Sara 9873' | xargs -n2

Mark 150
John 221
James 134
Sara 9873

-n max-args, --max-args=max-args
Use at most max-args arguments per command line.





share|improve this answer
















  • 1




    Wow! very easy, I didn't think about this xargs functionality! thanks!
    – proton
    1 min ago














up vote
6
down vote













Do it this way:



echo 'Mark 150 John 221 James 134 Sara 9873' | xargs -n2

Mark 150
John 221
James 134
Sara 9873

-n max-args, --max-args=max-args
Use at most max-args arguments per command line.





share|improve this answer
















  • 1




    Wow! very easy, I didn't think about this xargs functionality! thanks!
    – proton
    1 min ago












up vote
6
down vote










up vote
6
down vote









Do it this way:



echo 'Mark 150 John 221 James 134 Sara 9873' | xargs -n2

Mark 150
John 221
James 134
Sara 9873

-n max-args, --max-args=max-args
Use at most max-args arguments per command line.





share|improve this answer












Do it this way:



echo 'Mark 150 John 221 James 134 Sara 9873' | xargs -n2

Mark 150
John 221
James 134
Sara 9873

-n max-args, --max-args=max-args
Use at most max-args arguments per command line.






share|improve this answer












share|improve this answer



share|improve this answer










answered 12 mins ago









Goro

8,18354081




8,18354081







  • 1




    Wow! very easy, I didn't think about this xargs functionality! thanks!
    – proton
    1 min ago












  • 1




    Wow! very easy, I didn't think about this xargs functionality! thanks!
    – proton
    1 min ago







1




1




Wow! very easy, I didn't think about this xargs functionality! thanks!
– proton
1 min ago




Wow! very easy, I didn't think about this xargs functionality! thanks!
– proton
1 min ago










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









 

draft saved


draft discarded


















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












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











proton 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%2f474530%2forder-words-beside-each-other%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

Confectionery