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.
我有一个这样的文件:
z E l f A l t E^ t d Y s m u s t z E l f s x @ w e s t s t e t s h E p w i t E n o G @ o G @ n m I s x i n s t O n t
我需要在每行的末尾删除一个空格。
我该怎么做?先感谢您。
我假设您想从每行的末尾删除尾随空格和制表符。
awk '{ sub(/[ \t]+$/, ""); print }' file