I am trying to use Hunspell to correct an essay I have written. Unfortunately, it is useless to me, as long as it doesn’t print the line numbers of the misspelled words.
So right now I am using the -a
option, in order to be able to pipe it into the hunspell
command. The man page says, that the -L
option would “Print lines with misspelled words.” But I don’t see any difference in the output.
This is what I do right now:
$ cat myessay.txt | hunspell -d en_US,de_DE -a -L
An example output looks like this:
& JavaServer 3 412: Java Server, Java-Server, Javasee
The word “JavaServer” is on line 78, and as explained by the man page, it has an offset of 412 characters on that line.
Is there something I am missing? Is there an easy solution to this problem, or do I really have to pipe each line into Hunspell to find out at which line number it was?
Thanks in advance.