CodePudding user response:
S is replace the substitute, the three slashes contains two parts, the first part is need to be replaced, your expression is a space; Why, in the second part is to replace your is a comma. The last g said global global substitution parameters. So the total mean, the pipeline passed in front of the content of all space is replaced by a comma.