[lug] vi editor

Sean Reifschneider jafo at tummy.com
Fri Oct 27 08:17:40 MDT 2000

On Fri, Oct 27, 2000 at 12:34:22PM -0600, John Starkey wrote:
>d/ 			got that part. 
><space><space> 		on first account it's describing my last 12
>			months; I see it's also cutting a whole line. Does
>			this mean cut from <space> to <space>
>{!}			filter everything in the paragraph?
>fmt			a line justifier??

It's actually more like:

d                 - delete until...
/<space><space>   - search for two spaces
{!}               - run a shell command on the current paragraph
fmt               - that shell command is named "fmt".

Try replacing the "fmt" with:

	fmt -1 | sort | uniq -c | sort -rn


	wc -c

The former gives you a list of the words in the paragraph and their
frequency used (roughly), and the latter counts the words.

 Don't be mean. We don't have to be mean because, remember, no
 matter where you go, there you are.  -- _Buckaroo_Banzai_
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python

More information about the LUG mailing list