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

  • Twitter
  • Bookmark Remove quotes from variable text at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Remove quotes from variable text
  • Bloglines Remove quotes from variable text
  • Technorati Remove quotes from variable text
  • Fark this: Remove quotes from variable text
  • Bookmark Remove quotes from variable text at YahooMyWeb
  • Bookmark Remove quotes from variable text at Furl.net
  • Bookmark Remove quotes from variable text at reddit.com
  • Bookmark Remove quotes from variable text at blinklist.com
  • Bookmark Remove quotes from variable text at Spurl.net
  • Bookmark Remove quotes from variable text at Simpy.com
  • Bookmark Remove quotes from variable text at blogmarks
  • Bookmark Remove quotes from variable text with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

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