[PLUG] Need a vi command...
Kenneth G. Stephens
kens at kens.cad2cam.com
Sat Aug 23 16:42:01 UTC 2003
On Sat, 2003-08-23 at 16:05, Michael C. Robinson wrote:
> 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.
Try 1, $s/\.$// The "g" is unnecessary as you are only getting rid of
the last period in each line.
Ken
More information about the PLUG
mailing list