cat > $LFS/qlnx/bin/qshebang << EOF cd \$LFS/qlnx/bin for f in \`ls -R\` ; do head -1 \$f | grep '#!' &>/dev/null && sed -i "s/^#\!.*$/#\!\/qlnx\/bin\/bash/" \$f done EOF chmod -v 755 $LFS/qlnx/bin/qshebang