首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
shell脚本编写遍历某一目录下的所有文件
shell脚本编写遍历某一目录下的所有文件
mac
2024-07-07
52
shell脚本编写遍历某一目录下的所有文件
遍历/root/text/目录显示里面的所有文件
#!/bin/bash
d=`
ls
/
root
/
text
/
`
#定义遍历的目录
for
i in
$d
do
echo
$i
done
转载请注明原文地址: https://mac.8miu.com/read-494482.html
最新回复
(
0
)