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

Removing the trailing / from $1
${1%/}
Please rate this article (No signup or login required)
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.