Centering lines in vi

Jerry Peek jdpeek at rodan.acs.syr.edu
Fri Sep 15 01:27:24 AEST 1989


In article <745 at rodan.acs.syr.edu> I wrote:
< Second part: the 'colpos' script (written for 4.3 BSD):
< 	#! /bin/sh
< 	sed 's/.*//' | wc -c
<...
< (sorry, no "shar file").  Again, replace the ^A with a real control-A
< character.  The script reads the line from vi (from the script's standard
< input), strips off the ^A and the rest of the line...

I forgot the control-A (^A) in that sed expression.  It should have read:
	sed 's/^A.*//' | wc -c

--Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY
  jdpeek at rodan.acs.syr.edu///JDPEEK at SUVM.BITNET///GEnie: J.PEEK1
  +1 315 443-3995



More information about the Comp.unix.questions mailing list