#!/bin/bash
OrigiName="AAA"
TargetName="BBB\/Projector" #BBB/Projector
for f in $(find ./ -maxdepth 1 -type l -prune -or -name ".git" -prune )
do
if [ ! -e "$f" ]; then
ret=$(ls -alh $f | awk -F" " '{print $11}')
echo "ret="$ret
ret=$(echo "$ret" | sed -e "s/$OrigiName/$TargetName/g")
echo "ret="$ret
#ln -sf $ret $f #(確認好再打開)
fi
done
沒有留言:
張貼留言