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
| #!/bin/bash | |
| # Script to perform bulk action on READMEs in the `examples` repo | |
| for FILE in *; do | |
| # Get line where ### Preview starts | |
| PREVIEW_LINE=$(sed -n '/## Preview/=' $FILE/README.md); | |
| # If the preview section doesn't exist in the file, move on to the next folder | |
| if [ -z "$PREVIEW_LINE" ]; then | |
| echo "there's nothing" |