Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Substitute keyword in html address

$
0
0
I have data that looks like the below:

Code:

PXL-A0000005 DTE3504500000005
PXL-A0000007 DTE3504500000007
PXL-A0000014 DTE3504500000014
PXL-A0000015 DTE3504500000015
PXL-A0000016 DTE3504500000016

What I am trying to do is use the value in $1 and substitute it in catno=....&storage . I do not know how to do this, maybe sed ? Thank you :).

Code:

https://www.xxxx.com/add_2_cart.php?catno=PXL-A0236938&storage=lyophilized&rxns=100&num=1&test=mixed&format=tube
Example:
Code:

https://www.xxxx.com/add_2_cart.php?catno=PXL-A0000005&storage=lyophilized&rxns=100&num=1&test=mixed&format=tube

https://www.xxxx.com/add_2_cart.php?catno=PXL-A0000007&storage=lyophilized&rxns=100&num=1&test=mixed&format=tube

https://www.xxxx.com/add_2_cart.php?catno=PXL-A0000014&storage=lyophilized&rxns=100&num=1&test=mixed&format=tube


Viewing all articles
Browse latest Browse all 16232

Trending Articles