2014年(2)
分类: LINUX
2014-11-14 15:02:15
[root@localhost ~]# vi ex-1.sh
#!/bin/bash
#ext-1
#Using for move currently directory to /tmp
for Filename in $(ls -l |awk '$5 > 10240 {print $9}')
do
mv $Filename /tmp
done
ls -la /tmp
echo "Done!"