Answers for "If the {string} part is omitted, it is considered as an empty string, and the matched pattern is deleted. The following command deletes all instances of the string ‘foo’ in the current line"

0

If the {string} part is omitted, it is considered as an empty string, and the matched pattern is deleted. The following command deletes all instances of the string ‘foo’ in the current line

:s/foo//g
Posted by: Guest on August-20-2021

Code answers related to "If the {string} part is omitted, it is considered as an empty string, and the matched pattern is deleted. The following command deletes all instances of the string ‘foo’ in the current line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language