Remove Trailing Slash from Variable in Bash

Linux
2015-05-13 10:35 (9 years ago) ytyng

Removing the trailing / from $1

${1%/}
Current rating: 1
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011