Volltextergebnisse:
- string_operations
- ===== Length Operator ===== There are two way to get length of the string. The simplest one is ${#var... ed within the "back tick" shell operators like TARGETDIR=`dirname $1`. The "back tick" operators are eq... an use these expressions: path = ${foo%/*} To get: /tmp/my.dir (like dirname) file = ${foo##*/} To get: filename.tar.gz (like basename) base = ${file%