如何将Unix命令转换为Windows 7命令

时间:2013-10-26 18:33:41

标签: windows

我有以下一组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"

但我收到以下错误:

%我此时出乎意料。

0 个答案:

没有答案