2009/9/17 matt <maht-9f...@maht0x0r.net>:
> sed 's/^([^ ]+ +)([^ ]+)/\1HELL/'

Well, actually, my problem is a part of a more complicated script; I
don't know in advance neither the column nor what to put there.
I currently have this
awk '
        /TH/ {$'$pos'='$new'}
        {print}
' inpch
where 'TH' plays a role of a guard, and $pos and $new are the field to
be changed and with what, respectively.
I am afraid this rules out sed.

Thanks
Ruda

Reply via email to