我有一个keyvalue.txt
包含内容的文本文件:
one=abc
two=def
three=ghi
four=jkl
five=mno
six=pqr
Run Code Online (Sandbox Code Playgroud)
现在,我想附加xyz
到three
将成为的值
three=ghixyz
Run Code Online (Sandbox Code Playgroud)
生成的文件内容应该是:
one=abc
two=def
three=ghixyz
four=jkl
five=mno
six=pqr
Run Code Online (Sandbox Code Playgroud)
有没有办法在shell脚本中做到这一点?