1 bash
我想做的是类似的事情(这是伪代码):
for txt in $(some fancy command ./*.txt); do
some command here $txt
Run Code Online (Sandbox Code Playgroud)
您可以使用find:
find /path -type f -name "*.txt" | while read txt; do
echo "$txt"; # Do something else
done
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5146 次 |
| 最近记录: |