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

Adding a range of IPs in Linux
Viewed 3168 times since Mon, May 21, 2018
How to sort IP addresses in Linux
Viewed 4443 times since Thu, May 24, 2018
Script HW/SW AIX
Viewed 9927 times since Mon, Jun 4, 2018
O’Reilly’s CD bookshelf
Viewed 14396 times since Wed, Jun 27, 2018
Utilities to Tidy Up Your Reports
Viewed 16669 times since Wed, May 30, 2018
Dealing with Funny Files
Viewed 3251 times since Wed, May 30, 2018