Volltextergebnisse:
- string_operations
- ===== Length Operator ===== There are two way to get length of the string. The simplest one is ${#var... an use these expressions: path = ${foo%/*} To get: /tmp/my.dir (like dirname) file = ${foo##*/} To get: filename.tar.gz (like basename) base = ${file%%.*} To get: filename ext = ${file#*.} To get: tar.gz No