#!/bin/bash
a=/tmp/to_remove/share/ #文件夹a
b=/usr/local/share/ #文件夹b
for i in `ls $a`
do
echo $i
ls -l $b/$i
rm -rf $b/$i
done
#!/bin/bash
a=/tmp/to_remove/share/ #文件夹a
b=/usr/local/share/ #文件夹b
for i in `ls $a`
do
echo $i
ls -l $b/$i
rm -rf $b/$i
done