sed
-i
's/ *$//g'
myfile.txt
sed ‘s/[ \t]*$//g’
https://blog.csdn.net/hnlyyk/article/details/52318428
sed -i ‘s/ *$//g’ myfile.txt sed ‘s/[ \t]*$//g’ https:/…
sed
-i
's/ *$//g'
myfile.txt
sed ‘s/[ \t]*$//g’
https://blog.csdn.net/hnlyyk/article/details/52318428