Last active
May 27, 2022 06:11
-
-
Save nikosavola/b2a2dc0a7e44c121d5e2e111e59af949 to your computer and use it in GitHub Desktop.
Run `scspell` on globbed files
This file contains 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 | |
# Glob all .py files and concatenate to string with spaces | |
SCSPELL_FILES=$(find . -name "*.py" -o -name "*.ipynb" | tr '\n' ' ') | |
# Run spell checker | |
scspell $SCSPELL_FILES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment