# Strip extension: ${var%.ext} # Strip filename (extract directory): ${path%/*} # Strip path (extract filename): ${path##*/}
# Valeur par defaut: var2=${var1:-valDef}