📜  循环文件 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:40.541000             🧑  作者: Mango

代码示例2
#!/bin/bash
FILES=/path/to/*
for f in $FILES
do
  echo "Processing $f file..."
  # take action on each file. $f store current file name
  cat $f
done