Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] sed or awk or what?



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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links