I want to add
$x/ from data formatted as
xyz is a mix of text and number to be ignored).
How do I describe the variable as text before the hyphen? My idea is:
define $x = # don't know how to do that ## and then somehow use sed to prepend sed -i s/$/$x/ file # I don't know if sed can handle variables though - the above one liner is from Googling