Recursively read folders and executes command on each of them

后端 未结 7 1583
执笔经年
执笔经年 2020-12-12 21:05

I am trying to recurse into folders and then run commands on them, using bash script. Any suggestions?

7条回答
  •  温柔的废话
    2020-12-12 21:50

    Have a look at the find command and check the switches -type (use d to specify directory) and -exec (to specify a command to execute).

提交回复
热议问题