removing the trailing slash / on a variable in bash
Well there are probably many ways and I have seen a few, let us keep it simple and use built in stuff as much as possible. Bash is for lazy people. #!/bin/bash read -p „Enter Path: “ NEWPATH MYPATH=${NEWPATH} echo ${MYPATH} Using this, the path can have a trailing slash and you have got it … Weiterlesen