m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash.md b/bash.md
index c8b2004..26c5b5e 100644
--- a/bash.md
+++ b/bash.md
@@ -10,7 +10,7 @@ Remove shortest from end
Remove longest from start
- ${VAR#substr}
+ ${VAR##substr}
# e.g.
${FILEPATH##*/} # get only file name portion