user@desktop:~$ VAR=foobar user@desktop:~$ echo $VAR foobar user@desktop:~$ echo ${VAR%?} fooba |
Siehe auch: Bash: Delete first character from string
user@desktop:~$ VAR=foobar user@desktop:~$ echo $VAR foobar user@desktop:~$ echo ${VAR%?} fooba |
Siehe auch: Bash: Delete first character from string
Ein Gedanke zu „Bash: Delete last character from string“