This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
bash_scripts [2021/08/17 01:54] admin created |
bash_scripts [2022/04/07 14:53] admin |
||
---|---|---|---|
Line 50: | Line 50: | ||
esac | esac | ||
+ | </code> | ||
+ | |||
+ | ===== Spell checking a website ===== | ||
+ | This was by request. A user had a website and wanted to run spell check on it. This is simple, just run: | ||
+ | <code bash> | ||
+ | aspell -H -c filename.php | ||
+ | </bash> | ||
+ | The ''-c'' asks aspell to check, and the ''-H'' prepares it for HTML (it skips class names and php tags etc). | ||
+ | |||
+ | aspell only takes one filename at a time, but you can run through each file in a loop using: | ||
+ | <code bash> | ||
+ | for i in *.php; do aspell -c $i; done | ||
</code> | </code> |