1 2 3 4 5 6 7 8 9
#!/bin/sh for file in *g++* do sed "/SYSCONF_LINK .*=/s/g++/gcc/" $file > $file.tmp mv $file.tmp $file done