Skip to content

Remove quotes from variable text

Just got the problem that a variable, i want to substitute in a makefile, has quotes around the actual content. Thats bad, since this will break my script. So i need to remove the quotes right before substituting the text:


sed -i -e 's/STRING_TO_REPLACE/$(subst ",,$(CFLAGS))/g' FILE_TO_USE

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.
Form options