Re: text substitution in a colum

"Ruud H.G. van Tol" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 2012-11-26 15:05, MOKRANI Rachid wrote:

> Title1    Title2      Title3       Title4
> AA          B            66             D
> BB          DS          7              TT
> VS          FDSE     53             TGF
> BG          F            5               GF
>
> [...] Add the
> character MY_ before all numbers in the colum number 3 and preserve the
> title "Title3".

perl -pe 's/(.*?\t.*?\t)/$1MY_/ if $.>1'

-- 
Ruud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.