command line - bash - echo negation - Ask Ubuntu
echo ${string##*.} # show after last "."
how can revert (negate) - show before last "."
${string%.*}
remove shortest trailing portion matching .*
see example parameter expansion in excellent bashguide
Comments
Post a Comment