Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想A在文本文件的每一行末尾添加字符。我怎样才能用 awk 做到这一点?
A
1AAB VBNM JHTF 2SDA
期望的输出
1AABA VBNMA JHTFA 2SDAA
这可能会为您完成工作
awk '{print $0"A"}' yourFile