1 2 3 4 5 6 7 8 9
#!/bin/sh mkdir -p $1/usr/bin cd /usr/gcc/7/bin for bin in *; do ln -s ../gcc/7/bin/$bin $1/usr/bin/$bin done