Submitted by michael on Thu, 02/07/2019 - 10:24 URL https://www.tldp.org/LDP/abs/html/parameter-substitution.html Excerpt ${var%Pattern} Remove from \$var the shortest part of \$Pattern that matches the back end of \$var. I need to look this up far too often. Tags bash