Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Hi cas, tested your code but the file comes out untouched Commented May 12, 2016 at 15:26
  • Try the updated version. The first had two problems - 1. aspell reads from stdin, not a file 2. grep -v would never have done what you want, it would have removed the entire line on any match, not just the matching word. Commented May 13, 2016 at 0:01
  • Updated version just strips words but is ripping apart some words that are contained inside too: vg. citizenship would be converted to citizen if ship is not in dictionnary. That is too bad Commented May 13, 2016 at 11:48
  • ok, that just means the regexp needs to be further modified to have word boundary anchors....i really should have thought of that earlier. i'll update my answer. Commented May 13, 2016 at 14:24