我尝试在nodejs中运行命令:
$ sed -nr 's#^0 (.*)#training/\1#p' CSDMC2010_SPAM/CSDMC2010_SPAM/SPAMTrain.label | xargs node spamfilter.js -s
但是出现错误:
The term 'sed' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ sed -nr 's#^0 (.*)#training/\1#p' CSDMC2010_SPAM/CSDMC2010_SPAM/SPAMT ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (sed:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
尝试多种方法进行修复,但没有用,有谁可以帮助您?非常感谢