bash programming using sed
Posted: Wed May 17, 2017 12:12 pm
I have a relatively straight-forward task to do in a bash script using sed. I'm not familiar with bash scripting and even less so with sed. I have a text file like this:
Obviously I have no control over the hex number. What I want to do is substitute PARTUUID=a5d5af73-01 with /dev/mmcblk0p1 I have gone around in circles trying to do this with sed but no joy -maybe I'm too thick to get my head around it
Can anyone help or give me an alternative method?
-JohnK
Code: Select all
random text PARTUUID=a5d5af73-01 random textCan anyone help or give me an alternative method?
-JohnK