merge one text with another text and print to new one with change in one field
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
How to handle this through Linux:
File 1:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 0, 1" --ver --timeads=10
File 2:
99
1000000
99282828
111
Result:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
which means i have one file with command in file1 and i need to copy the numbers from file 2 and paste the command to new file line by line with replacing the number after SIZET
linux awk sed
add a comment |Â
up vote
0
down vote
favorite
How to handle this through Linux:
File 1:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 0, 1" --ver --timeads=10
File 2:
99
1000000
99282828
111
Result:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
which means i have one file with command in file1 and i need to copy the numbers from file 2 and paste the command to new file line by line with replacing the number after SIZET
linux awk sed
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How to handle this through Linux:
File 1:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 0, 1" --ver --timeads=10
File 2:
99
1000000
99282828
111
Result:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
which means i have one file with command in file1 and i need to copy the numbers from file 2 and paste the command to new file line by line with replacing the number after SIZET
linux awk sed
How to handle this through Linux:
File 1:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 0, 1" --ver --timeads=10
File 2:
99
1000000
99282828
111
Result:
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
which means i have one file with command in file1 and i need to copy the numbers from file 2 and paste the command to new file line by line with replacing the number after SIZET
linux awk sed
asked Nov 18 '17 at 16:52
ñÃÂñýàñüÃÂÃÂùcñ÷
412419
412419
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22
add a comment |Â
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
How about xargs
+ sed
?
$ xargs -I -a File2 sed 's/SIZET 0, 1/SIZET , 1/' File1
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
How about xargs
+ sed
?
$ xargs -I -a File2 sed 's/SIZET 0, 1/SIZET , 1/' File1
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
add a comment |Â
up vote
1
down vote
accepted
How about xargs
+ sed
?
$ xargs -I -a File2 sed 's/SIZET 0, 1/SIZET , 1/' File1
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
How about xargs
+ sed
?
$ xargs -I -a File2 sed 's/SIZET 0, 1/SIZET , 1/' File1
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
How about xargs
+ sed
?
$ xargs -I -a File2 sed 's/SIZET 0, 1/SIZET , 1/' File1
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 1000000, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 99282828, 1" --ver --timeads=10
1 -b 2 --guide=5 --drop=3 --errors-parse --win-flags="dirwin pc_hard_no,pc_hard_expiry_month,pc_hard_expiry_year,pc_ver with hardvr.type_portals_methods_file WHERE pc_hard_no > 99999999999999 VER pc_hard_expiry_date > '2017-10-31' VER pc_ver > 0 SIZET 111, 1" --ver --timeads=10
answered Nov 18 '17 at 18:17
steeldriver
31.9k34979
31.9k34979
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
add a comment |Â
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
That's Amazing Mate, thanks a lot
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 18:20
add a comment |Â
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%2f405455%2fmerge-one-text-with-another-text-and-print-to-new-one-with-change-in-one-field%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
@RomanPerekhrest take a look if you available.
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 18 '17 at 17:22