Mailing List Archive


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

Re: [tlug] sed or awk or what?



>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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links