#!/bin/sh if [ "$1" == "" ]; then echo Do not call this file without parameter! return fi if [ "$1" == `pwd` ]; then echo Do not set the same directory! return fi for i in *; do if [ "$i" == "." ]; then continue; fi if [ "$i" == ".." ]; then continue; fi echo $i echo $1$i rm $1$i ln $i $1$i done if [ "$2" != "" ]; then echo $1ibanner$2 rm $1ibanner$2 ln ibanner $1ibanner$2 chmod a+x $1ibanner$2 fi sleep 2