[PLUG] Need a vi command...

Chaz chaz at bctonline.com
Sat Aug 23 16:45:02 UTC 2003


:1,$s/\.$//
That will delete a literal period at the end of every line.
-chaz


---- Original Message ----
From: michael at goose.robinson-west.com
To: plug at lists.pdxlinux.org
Subject: RE: [PLUG] Need a vi command...
Date: 23 Aug 2003 16:05:37 -0700

>I have a log file from installation and I want to strip the trailing
>period on each line.  I've already cut all the lines to get rid of
>the installing and I've sorted as well.  I've formatting this to
>compare against what I currently have installed output by an rpm -qa.
>
>I am looking for what I uninstalled that could cause the current
>problems I'm seeing.
>
>     --  Michael
>
>So far I've tried '1,$s/\.\n/\n/g,' which causes an ^@ to be
>substituted
>instead of a newline.
>
>_______________________________________________
>PLUG mailing list
>PLUG at lists.pdxlinux.org
>http://lists.pdxlinux.org/mailman/listinfo/plug

Charles L. Sliger
chaz at bctonline.com





More information about the PLUG mailing list