您的位置:首页 > 其它

批量删除当前目录下的可执行文件

2011-06-22 15:18 726 查看
test.sh

 

 

#!/bin/sh

for file in `ls`;do

if [ -x "$file" ]; then

   if [
"$file" != "test.sh" ];then

      rm -rf  $file

   fi

fi

done
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  file