Date: Mon, 25 Aug 2008 21:00:10 -0700 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: script to assist ASCII text Message-ID: <1219723211.4994.165.camel@localhost>
next in thread | raw e-mail | index | archive | help
People, This had eluded me for years and it may not be possible, but here goes. I write using vi or, less frequently vim. Is there any sh script that would make sure that there were exactly one space ('\040') between words, and three spaces between sentences? My definition of "a sentence" is a string of words that ends in a period or question-mark, exclamation-mark, or ellipse ("... . || ... ? || ... !) Also, any dash "--" could not have any whitespace around it. Anything except these would print an error. thanks for idea or input, gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1219723211.4994.165.camel>