1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh NEW_CMD="/usr/bin/cc" for a in "$@"; do if [ "$a" != "-lstdc++" ]; then NEW_CMD="$NEW_CMD $a" fi done $NEW_CMD