Try to search your question here, if you can't find : Ask Any Question Now ?

bash script into windows 10 powershell version

HomeCategory: stackoverflowbash script into windows 10 powershell version
bhawya asked 3 weeks ago

My Python2.7 and pypy(using virtualenv) are all under windows 10 environment. From a README file in simulation software, below includes a ‘for loop” script in Bash command. How would I convert below ‘for loop” (three lines) Bash commands into equivalent Windows 10 Powershell commands?

“It’s better to run several processes in parallel, for instance:

$ for i in {1..10}; do
$ time $pypy epto.py conf_epto/ $i > conf_epto/run-$i.log $
$ done
  • And then to obtain stats for all runs:

    $pypy genStats.py conf_epto 10

  • This will output the stats to stdout and also generate dumps in gnuplot format.”

I tried to run Powershell commands but face error:

(my-pypy-env) PS C:UsersAcerdevpypy27homemy-pypy-envSimpleDA-master> for ( $i = 1; $i -le 10; $i++) {
>> $pypy epto.py conf_epto/ $i > conf_epto/run-$i.log $
>> done}
At line:2 char:7
+ $pypy epto.py conf_epto/ $i > conf_epto/run-$i.log $
+       ~~~~~~~
Unexpected token 'epto.py' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken
1 Answers
Best Answer
Mannu answered 3 weeks ago
Your Answer

7 + 16 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com