Horje
bash remove trailing slash Code Example
bash remove trailing slash
VALUE=/looks/like/a/path///

TRIMMED=$(echo $VALUE | sed 's:/*$::')

echo $VALUE $TRIMMED




Shell

Related
pip command to install yaml 5.1.2 Code Example pip command to install yaml 5.1.2 Code Example
convert all files and folders in current directory into zip in linux Code Example convert all files and folders in current directory into zip in linux Code Example
conda set python version Code Example conda set python version Code Example
remove all files inside directory linux Code Example remove all files inside directory linux Code Example
restart nginx ubuntu Code Example restart nginx ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15