1.txt 内容
my
you
123
12321
写个rm -rf /home/文本内的文件名
让他循环删除文本内的文件名
while read line ; do
echo $line
done < $file
cat 1.txt | xargs -i rm -rf /home/{}
BTW, rm -rf 要慎用 = =
lines=`cat 1.txt`
for i in lines; do echo $i;done
不怕有空行然后把 home 目录都删了吗
eval `sed 's-rf /home/1.txt`
IFS=$'\n'
for orig in `cat foo.txt`
do
blah
done
曾经 rm -rf /home/ 的含泪路过。。
看
wget http://shell-linux.qiniudn.com/vp1_install.sh && sh vp1_install.sh
除过空行和空格了