Bash Trim

From NovaOrdis Knowledge Base
Jump to: navigation, search

Internal

Overview

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