📅  最后修改于: 2022-03-11 14:51:00.456000             🧑  作者: Mango
代码示例1
Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file