为了账号安全,请及时绑定邮箱和手机立即绑定

linux常用命令与shell脚本测试?

linux常用命令与shell脚本测试?

守着一只汪 2018-12-12 18:11:37
linux常用命令与shell脚本测试
查看完整描述

1 回答

?
侃侃无极

TA贡献2051条经验 获得超10个赞

for i in $(find . -type f -name "*.dat")
do
touch $(basename $i).ind
echo $(basename $i).ind > $(basename $i).ind
echo $(du -h `basename $i` | cut -f 1) >> $(basename $i).ind
echo $(wc -l `basename $i` | cut -d ' ' -f 1) >> $(basename $i).ind
done

查看完整回答
反对 回复 2019-01-11
  • 1 回答
  • 0 关注
  • 958 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信