A vi question
stan
stanb at panix.com
Tue Sep 8 19:56:58 UTC 2009
On Tue, Sep 08, 2009 at 02:35:31PM -0400, stan wrote:
> vi is a continuing learning experinece :-)
>
> The lesson I would like to learn today is given a file containing lines of
> this format:
>
> SOR XIC I:016/0 BST OTE B3/200 NXB OTE N51:4/13 BND EOR
>
> I need to delete evrything on each line _before_ the OTE. The strings
> preceding the OTE are vairable. So I need a command that saya:
>
> for each line find everyhting from the begining of the line through OTE,
> and substitue OTE for it. or at leat that's one idea I had. I am ceratin
> there is more than one way to solve this problem.
>
> I was thinking that I needed something like:
>
> :.,$s/^*OTE/OTE/
>
> But * is not the appropriate wildcard here in vi.
>
> Any sugestions?
re updates. I did get it working. I had to create a config file for xinetd
in it's native format. I does not appear that xinetd's compatibilty mode
works, even though the log messages make it seem that it is.
I still don't see tftpd running in the process table though, but I cna
transfer files, both wats. Can anyone explain why i would not see the tftpd
proocess with ps?
--
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
More information about the ubuntu-users
mailing list