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

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 关注
  • 1058 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号