awk sed question...

Dear Friends,


I need a code that can replace a var_text in a line into xyz so I can
replace it later. The var_text can be a1, a2, a3, a4,


e.g.

stainless mud pan,construction,,,4,4,1196924152,,a2,,
jonaharah [ Sa, 26 Januar 2008 10:55 ] [ ID #1916700 ]

Re: awk sed question...

jonaharah [at] gmail.com wrote:
>
> I need a code that can replace a var_text in a line into xyz so I can
> replace it later. The var_text can be a1, a2, a3, a4,
>
>
> e.g.
>
> stainless mud pan,construction,,,4,4,1196924152,,a2,,

sed "s/a[1-4]/xyz/"

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.
Cyrus Kriticos [ Sa, 26 Januar 2008 11:04 ] [ ID #1916701 ]
Linux » comp.unix.shell » awk sed question...

Vorheriges Thema: Re: uniq without sort <-------------- GURU NEEDED
Nächstes Thema: Problem with Strings in for loop