hi all
how to join string from the left side to the output
For example (we want to join parameter="file/"
remark: file=/dir1/dir2/ (file have value)
echo aaa bbb | awk '{print $2}' | sed ....
Will print
/dir1/dir2/bbb
hi all
how to join string from the left side to the output
For example (we want to join parameter="file/"
remark: file=/dir1/dir2/ (file have value)
echo aaa bbb | awk '{print $2}' | sed ....
Will print
/dir1/dir2/bbb
Assuming your input is good, this should be enough.
sed "s|\(.*\)|$VARIABLE\1|"