[lug] delete last character of every line

andrew mathes amathes at backnine.org
Wed Mar 23 16:01:27 MST 2005


:%s/[\.]$//

should work in vi to strip one . off all lines that end with .

On Wed, 23 Mar 2005, Shannon Johnston wrote:

> Once again, I'm stuck with a little problem.
> I've got a list of 6000 ip addresses in a text file, all of them have a
> trailing ".". I need to get rid of that before it becomes useful.
>
> Does anybody know how to do that? Either in vi or as a sed command?
>
>
> Thanks,
> Shannon
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>



More information about the LUG mailing list