Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] sed or awk or what?
- Date: 06 Aug 2002 21:51:29 +0900
- From: Bruno Raoult <br@example.com>
- Subject: Re: [tlug] sed or awk or what?
- References: <F231cGwM0OOJrzF5ldf00000923@example.com>
It could work, if you limit the change to the second line. But it is not very compact :-) On Tue, 2002-08-06 at 18:10, Jean-Christian Imbeault wrote: > >From: Sven Simon <sven@example.com> > >I have a file where I'd like to change the 9th field on the second line > >to, say, 70. Field seperator is space. I would > > I'm no good with sed and I am sure someone will quickly give a really good > awk script but ... > > assuming there are no spaces in any of your fields > > how about: > > s/(.*) (.*) (.*) (.*) (.*) (.*) (.*) (.*) (.*)(.*) /\1 \2 \3 \4 \5 \6 \7 \8 > 70\10 > Jc > > PS I'm sure it doesn't work and you have my shell book so I can't look it up > ;) > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > ************************************************* > TLUG server is hosted by Global Online Japan > http://home.gol.com/index_e.html > ************************************************* > > ================================================= > To unsubscribe from this mailing list, > please see instructions at > http://www.tlug.jp/list.html > ================================================= > -- Comme disait Blaise, si ça fait pas de bien, ça peut pas faire de mal.Attachment: signature.asc
Description: This is a digitally signed message part
- References:
- Re: [tlug] sed or awk or what?
- From: Jean-Christian Imbeault
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] sed or awk or what?
- Next by Date: Re: [tlug] sed or awk or what?
- Previous by thread: Re: [tlug] sed or awk or what?
- Next by thread: Re: [tlug] sed or awk or what?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links