Xref: utzoo comp.editors:934 comp.unix.questions:16326 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!nyser!rodan!jdpeek From: jdpeek@rodan.acs.syr.edu (Jerry Peek) Newsgroups: comp.editors,comp.unix.questions Subject: Re: Centering lines in vi Message-ID: <748@rodan.acs.syr.edu> Date: 14 Sep 89 15:27:24 GMT References: <2283@umbc3.UMBC.EDU> <745@rodan.acs.syr.edu> Reply-To: jdpeek@rodan.acs.syr.edu (Jerry Peek) Organization: Syracuse University, Syracuse, NY Lines: 15 In article <745@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@rodan.acs.syr.edu///JDPEEK@SUVM.BITNET///GEnie: J.PEEK1 +1 315 443-3995