Trim extra leading, trailing, and repeated internal whitespace.
Section: Text and list functions
strip whitespace
makefile
makefile
NAME := $(strip $(NAME))Explanation
Useful before equality tests or diagnostics.
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 Text and list functions