awk 看起来非常强大,不过有个需求我用 awk 实现不了,难道 awk 做不到?
string.txt 包含如下列:
1 word WORD
2 test TEST
3 this THIS
……
foo.txt 内容:
this is a word replace test.
替换成:
<3>thisTHIS is a <1>wordWORD replace <3>testTEST.
string.txt 包含如下列:
1 word WORD
2 test TEST
3 this THIS
……
foo.txt 内容:
this is a word replace test.
替换成:
<3>thisTHIS is a <1>wordWORD replace <3>testTEST.