Recursively read folders and executes command on each of them

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

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

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 21:42

    Sorry I don't understand what you are asking. The best I can guess with your question is

    find -type d -exec scriptname.sh \{\} \;
    

提交回复
热议问题