Bash: how to traverse directory structure and execute commands?

前端 未结 6 1646
半阙折子戏
半阙折子戏 2021-01-12 06:40

I have split a large text file into a number of sets of smaller ones for performance testing that i\'m doing. There are a number of directories like this:

/h         


        
6条回答
  •  无人及你
    2021-01-12 07:16

    Something like:

    for x in `find /home/brianonly -type f`
    do
    ./yourexecutable -i $x -o $x.processed
    done
    

提交回复
热议问题