We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281e887 commit 1c65d6dCopy full SHA for 1c65d6d
bash.md
@@ -77,6 +77,10 @@ echo "${variable}" # => Some string
77
# String substitution in variables:
78
echo "${variable/Some/A}" # => A string
79
# This will substitute the first occurrence of "Some" with "A".
80
+# Prepend a / before the search string to substitute every instance of it.
81
+variable="Some string. Some character"
82
+echo "${variable//Some/A}" # => A string. A character
83
+# This will substitute every occurrence of "Some" with "A".
84
85
# Substring from a variable:
86
length=7
0 commit comments