DMCA投诉来的,因为需要物理删除文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
items=" http://i.niupic.com/images/2017/04/24/EUBF5K.jpg http://i.niupic.com/images/2017/04/24/K8DITB.jpg http://i.niupic.com/images/2017/04/24/NvXGPV.jpg http://i.niupic.com/images/2017/04/24/tmRX1k.jpg http://i.niupic.com/images/2017/04/24/vXpbf4.jpg http://i.niupic.com/images/2017/04/24/TmFUfX.jpg http://i.niupic.com/images/2017/04/24/2i6QnD.jpg http://i.niupic.com/images/2017/04/24/MqWEn5.jpg " IFS=' ' count=0 for item in $items do name="$(basename ${item})" #name=${item##/*/} count=$((count+1)) echo $count $name rm -rf "$name" done |
可以这样写个bash 批量快速处理!