Hi,
I'm new to using sed. I'm trying to create a simple sed command in my script to search a file by a unix variable and then append text to matching lines. I've tried:
more filename |sed '/$VARIABLE/s/ *$/appended text'
but this doesn't seem to do anything.
Could someone advise?
Regards,
I'm new to using sed. I'm trying to create a simple sed command in my script to search a file by a unix variable and then append text to matching lines. I've tried:
more filename |sed '/$VARIABLE/s/ *$/appended text'
but this doesn't seem to do anything.
Could someone advise?
Regards,