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 3255 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

Bash: String Length – How To Find Out
Viewed 3244 times since Mon, Feb 18, 2019
Epoch & Unix Timestamp Conversion Tools
Viewed 87547 times since Fri, Jun 22, 2018
perl podstawy
Viewed 2695 times since Mon, May 21, 2018