Trim each line in multiline mode.
Section: Cleanup and Normalization
Match leading or trailing spaces per line
regex
regex
^\s+|\s+$Explanation
Use multiline mode to trim line edges.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Cleanup and Normalization