Remove Space At End Of Each Line File

[Solved] Remove Space At End Of Each Line File | Perl - Code Explorer | yomemimo.com
Question : remove space at end of each line file

Answered by : armando-flores

Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file

Source : | Last Update : Thu, 29 Oct 20

Answers related to remove space at end of each line file

Code Explorer Popular Question For Perl