Skip to content

Instantly share code, notes, and snippets.

@zhulianhua
Created September 13, 2018 21:44
Show Gist options
  • Save zhulianhua/acf914c501e4b9548c59ffb7bb0c1b08 to your computer and use it in GitHub Desktop.
Save zhulianhua/acf914c501e4b9548c59ffb7bb0c1b08 to your computer and use it in GitHub Desktop.
powershell for loop
for ($i=0; $i -lt 21; $i++)
{
$stra = $i*5000
$filename = 'CFILE_' + $stra.ToString() + '.dat'
preplot $filename
}
@mayflower12
Copy link

for ($i=21; $i -lt 41; $i++)
{
   $stra = $i*5000
   $filename = 'CFILE_' + $stra.ToString() + '.dat'
   preplot $filename
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment