[lug] delete last character of every line
Rick Casey
rick at rickcasey.net
Wed Mar 23 15:38:14 MST 2005
You said: <begin> Shannon Johnston<end>
> 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?
In vi, at command line:
%s/.$//g
ought to do it...
rick
More information about the LUG
mailing list