我有这样的档案:
Name Position Letter String
Bla 123 A ..B.,,,.C..
Bla 123 B ..a.,,,.C..
Bla 123 C ..b.,,,.A..
我愿将<代码>>和>>、
改为(在第1行,<代码>A。
最终产品:
Name Position Letter String
Bla 123 A AABAAAAACAA
Bla 123 B BBaBBBBBCBB
Bla 123 C CCbCCCCCACC
The awk thinking is replace character in column 4 with "the" character in column 3. I think awk should be the correct tool for this but I´m stuck with replacing character in string.
sed s/(^.{4})./{3}/
don t work and I considered may be the wrong tool.
Awk/sed/python/perl/vi Solutions受到欢迎。