Remove Trailing Slash from Variable in Bash
Linux
2015-05-13 01:35 (10 years ago)

Removing the trailing / from $1
${1%/}
Please rate this article
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.