mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fixing Typo.
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Let's assume somewhere earlier in your code you have put data into a variable (Ex: $string). Now you want to do a search and replace inside the contents of $string and echo the contents out. You could pass this to sed as done in the example above, but for simple substitutions utilizing the shell for the same feature is a lot simpler and should be utilized whenever possible.
|
Let's assume somewhere earlier in your code you have put data into a variable (Ex: $string). Now you want to do a search and replace inside the contents of $string and echo the contents out. You could pass this to sed as done in the example above, but for simple substitutions utilizing the shell for the same feature is a lot simpler and should be utilized whenever possible.
|
||||||
|
|
||||||
### Contraindications
|
### Contradictions
|
||||||
|
|
||||||
Occasionally a more complex sed substitution is required. For example, getting the last character of a string.
|
Occasionally a more complex sed substitution is required. For example, getting the last character of a string.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user