全部博文(7)
分类: LINUX
2013-02-16 13:15:01
[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!"