#!/bin/bash
#filename:move5k.sh
for FileName in `ls -l |awk '$5 >10240' {print $9}`
do
cp $FileName /tmp
done
ls -al /tmp
echo "Done!"
SHELL 当前目录下 文件大于10K的 复制到/tmp目录下啊
最新推荐文章于 2023-11-09 10:32:01 发布
#!/bin/bash
#filename:move5k.sh
for FileName in `ls -l |awk '$5 >10240' {print $9}`
do
cp $FileName /tmp
done
ls -al /tmp
echo "Done!"