Answers for "remove last space from line"

1

remove last space from line

Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file
Posted by: Guest on October-22-2020

Code answers related to "remove last space from line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language