摘要: 文件操作 为文件(test.sh)增加执行权限 chmod +x test.sh 列出当前文件夹下所有文件(每行输出一个) 1 #!/bin/bash 2 dir=`ls ./` 3 for i in $dir 4 do 5 echo $i 6 done 列出当前文件夹下所有 txt 文件(每行输出 阅读全文
posted @ 2020-07-30 08:35 cxc1357 阅读(278) 评论(0) 推荐(0)
摘要: 参考 https://www.cnblogs.com/peter1994/p/7297656.html 阅读全文
posted @ 2020-07-30 08:32 cxc1357 阅读(109) 评论(0) 推荐(0)
摘要: 参考 https://www.cnblogs.com/aeolian/p/10614284.html 阅读全文
posted @ 2020-07-30 08:10 cxc1357 阅读(192) 评论(0) 推荐(0)