Hello,
i would like to write a bash program wich enabbles me to define a directory and then automatically do one command within each of the subdirectories.
I am not that good in bash programming - so any help would be appreciated.
How can i cycle through all subdirectories and do a command
Re: How can i cycle through all subdirectories and do a comm
'man find'
Code: Alles auswählen
find dir1/ dir2/ ... -type d -execdir command ... \;
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")