http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54692
--- Comment #7 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-24 14:40:50 UTC --- (In reply to comment #5) > Does it work with "s/-O[sg0-9]* *//"? Yes: tmp % echo "-Og -g"| sed "s/-O[sg0-9]* *//" -g tmp %