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