我有以下一组unix命令:
for i in `cat a.csv`
do
for j in `cat b.csv`
do
if echo $i | find -i $j;then
echo -n $j >> out.csv
echo –n “,” >> out.csv
done
echo -e "\n"
done
我正在尝试将它们转换为Windows命令行,如下所示:
FOR %i IN (a.csv)
do FOR %j IN (b.csv)
do if echo %i | find -i %j;then echo -n %j% >> out.csv
echo –n “,” >> out.csv
echo -e "\n"
但我收到以下错误:
%我此时出乎意料。