Usuwanie spacji z zmiennych w bash
Article Number: 33 | Rating: Unrated | Last Updated: Tue, May 22, 2018 8:58 PM
Usuwanie początkowych / „wiodących” spacji z zmiennej:
ZMIENNA="${ZMIENNA#"${ZMIENNA%%[![:space:]]*}"}"
Usuwanie końcowych / „wleczących” spacji z zmiennej:
ZMIENNA="${ZMIENNA%"${ZMIENNA##*[![:space:]]}"}"
Posted - Tue, May 22, 2018 8:58 PM. This article has been viewed 2559 times.
Filed Under:
Bash
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Related Articles

Epoch & Unix Timestamp Conversion Tools
Viewed 62996 times since Fri, Jun 22, 2018
awk printf
Viewed 15358 times since Wed, Aug 19, 2020
10 Awk Tips, Tricks and Pitfalls
Viewed 6016 times since Wed, Aug 19, 2020
HowTo: Clear BASH History
Viewed 2240 times since Mon, Feb 18, 2019