我想使用 sed (Windows/cmd)替换,
文件中的所有字符。,"
这是我尝试过的:
>head -n3 SiteRank.csv
1,facebook.com
2,google.com
3,youtube.com
>head -n3 SiteRank.csv | sed s/,/,"/
1,facebook.com
2,google.com
3,youtube.com
>head -n3 SiteRank.csv | sed s/,/,\"/
sed: -e expression #1, char 7: unterminated `s' command
>head -n3 SiteRank.csv | sed s/,/,\\"/
sed: -e expression #1, char 7: unterminated `s' command
>head -n3 SiteRank.csv | sed s/,/,^"/
1,facebook.com
2,google.com
3,youtube.com