对我来说,使用sed真的很常见.我曾经有过's/pattern1/pattern2/g'.
's/pattern1/pattern2/g'
有人可以帮我解释一下吗? 输入字符串如下所示:
path1/path2/path3/fileA path1/path2/path3/fileB path1/path2/path3/fileC
输出是fileA fileB fileC.
fileA fileB fileC
sed
sed ×1