Bash Trim

From NovaOrdis Knowledge Base
Revision as of 20:21, 20 September 2019 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

Internal

Overview

trailing_space_removed=${var_name%%[[:space:]]}
leading_space_removed=${var_name##[[:space:]]}