Bash Trim

From NovaOrdis Knowledge Base
Revision as of 20:18, 20 September 2019 by Ovidiu (talk | contribs) (Created page with "=Internal= * bash =Overview= <syntaxhighlight lang='bash'> trailing_space_removed=${var_name%%space:} leading_space_removed=${var_name##:sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

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