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

Script HW/SW AIX
Viewed 9384 times since Mon, Jun 4, 2018
Time conversion using Bash
Viewed 2833 times since Fri, May 25, 2018
How to sort IP addresses in Linux
Viewed 4077 times since Thu, May 24, 2018
perl podstawy
Viewed 2135 times since Mon, May 21, 2018
Tunneling With SSH to Your Destination
Viewed 4587 times since Wed, May 30, 2018
View Config Files Without Comments
Viewed 2434 times since Mon, May 21, 2018