Creating a new column in text file
Clash 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!
scripting
New contributor
add a comment |Â
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!
scripting
New contributor
add a comment |Â
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!
scripting
New contributor
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
scripting
New contributor
New contributor
New contributor
asked 11 mins ago
apple
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
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.
New contributor
add a comment |Â
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.
New contributor
add a comment |Â
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.
New contributor
add a comment |Â
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.
New contributor
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.
New contributor
New contributor
answered 4 mins ago
Whilom Chime
1012
1012
New contributor
New contributor
add a comment |Â
add a comment |Â
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.
apple is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password