SED命令删除尾随空格

use*_*827 2 sed

是否有sed删除尾随空格的命令?

Vij*_*jay 9

使用以下命令:

sed 's/\s*$//g' your_file
Run Code Online (Sandbox Code Playgroud)