User Tools

Site Tools


bash_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash_scripts [2021/08/17 01:54]
admin created
bash_scripts [2022/04/07 14:54] (current)
admin [Spell checking a website]
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
 +</​code>​
 +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>​
bash_scripts.1629161664.txt.gz ยท Last modified: 2021/08/17 01:54 by admin