# x-foreach Run a command in each directory produced by another command. ## Usage ```bash x-foreach "" "" ``` - `list-cmd` – command that outputs directories - `cmd` – command to run inside each directory ## Example ```bash x-foreach "ls -d */" "git status" ```