m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/bash.md
diff options
context:
space:
mode:
Diffstat (limited to 'bash.md')
-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