merge one text with another text and print to new one with change in one field

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|improve this question




















  • @RomanPerekhrest take a look if you available.
    – Î±Ô‹É±Ò½Ôƒ αмєяιcαη
    Nov 18 '17 at 17:22














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







share|improve this question




















  • @RomanPerekhrest take a look if you available.
    – Î±Ô‹É±Ò½Ôƒ αмєяιcαη
    Nov 18 '17 at 17:22












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







share|improve this question













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









share|improve this question











share|improve this question




share|improve this question










asked Nov 18 '17 at 16:52









αԋɱҽԃ αмєяιcαη

412419




412419











  • @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




@RomanPerekhrest take a look if you available.
– Î±Ô‹É±Ò½Ôƒ αмєяιcαη
Nov 18 '17 at 17:22










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





share|improve this answer




















  • That's Amazing Mate, thanks a lot
    – Î±Ô‹É±Ò½Ôƒ αмєяιcαη
    Nov 18 '17 at 18:20










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



);













 

draft saved


draft discarded


















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






























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





share|improve this answer




















  • That's Amazing Mate, thanks a lot
    – Î±Ô‹É±Ò½Ôƒ αмєяιcαη
    Nov 18 '17 at 18:20














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





share|improve this answer




















  • That's Amazing Mate, thanks a lot
    – Î±Ô‹É±Ò½Ôƒ αмєяιcαη
    Nov 18 '17 at 18:20












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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

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

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?