Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>On unix-like systems, you can use a combination of tools on the command line. One example would be to use <strong>egrep</strong> to filter out lines starting with comment characters, <strong>cut</strong> to split the properties file on the equals sign and output the second field (right-hand side), and a pipe to a spell checker like <strong>spell</strong>.</p> <p>Given this input file named resources.properties:</p> <pre><code># Application resources com.hello.world = Hello world. com.module.home = hoem. com.module.fruits = apple, bananananana, cranberry, grape, orange, strawburry </code></pre> <p>Here's an example of a command to spell check "resources.properties", and its output:</p> <pre><code>[user@host ~]$ egrep -v '^#' resources.properties | cut -d= -f2 | spell bananananana hoem strawburry </code></pre> <p>The <code>egrep -v '^#'</code> command filters out comments (lines that start with the pound sign). The <code>-d=</code> argument to the <code>cut</code> utility sets the field delimiter to the equals sign, and <code>-f2</code> directs the command to output the second field -- the right-hand side of the equals sign, a.k.a. the property value / string to spell-check.</p> <p>On many systems, the "spell" command is provided by the <a href="http://aspell.net/man-html/" rel="nofollow">aspell</a> utility. An alternate command line that invokes aspell directly, and offers suggestions for spelling correction:</p> <pre><code>egrep -v '^#' resources.properties | cut -d= -f2 | aspell pipe </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload