Linux way/command to make a script running from every subdir 11 July 2022, 05:11:44 Sorry if not really Artix but no/little attention on many other forumsHow is the find command (or else if better) to let us run a script from, i.e. relative to, every subdir under, and including, current working directory ?illustratio e.g. script is Code: [Select]grep 'foo' *
Re: Linux way/command to make a script running from every subdir Reply #1 – 11 July 2022, 07:48:41 Quote from: mardiyah – on 11 July 2022, 05:11:44Sorry if not really Artix but no/little attention on many other forumsHow is the find command (or else if better) to let us run a script from, i.e. relative to, every subdir under, and including, current working directory ?illustratio e.g. script is Code: [Select]grep 'foo' *I would do it this way:Code: [Select]find . -type d -exec sh -c 'cd {} && command' ';' 1 Likes