Relative Content

Tag Archive for linuxbashsed

Allowing input within sed command

I am attempting to make it so that within a file (rc.xml), it will replace between two strings (theme), and (this stuff), with the contents of a file openbox-$1 ($1 is an argument). Within sed, sed does absolutely nothing with the argument, and nothing is replaced. However, when I replace $1 with some predefined value, the script works as intended. However with that comes the loss of user input, which the whole purpose of the script (to set the proper Openbox settings for the user) is completely broken.