Created
June 10, 2021 09:15
-
-
Save lktslionel/4606b22656916b4431416f6e861e00ad to your computer and use it in GitHub Desktop.
[TIP] Make redirection after running a `find` followed by a `xargs` command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find src/modules \ | |
-type d\ | |
-not -path src/modules\ | |
-print0 \ | |
| $_XARGS_CMD -I module bash -c 'terraform-docs markdown "module" > "module"/README.md' | |
Check $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment