Home > other >  Shell scripts corresponding sed 's//,/g command is what mean
Shell scripts corresponding sed 's//,/g command is what mean

Time:12-30

Source code is the awk - F '|' '{print $2} ${jf_report_ccmember} | xargs | sed' s//,/g '

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.
  • Related