Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell while loop

> $array = @("item1", "item2", "item3")
$counter = 0;

while($counter -lt $array.length){
   $array[$counter]
   $counter += 1
}
 
item1
item2
item3
Comment

powershell do while loop

> $array = @("item1", "item2", "item3")
$counter = 0;

do {
   $array[$counter]
   $counter += 1
} while($counter -lt $array.length)
 
item1
item2
item3 
Comment

PREVIOUS NEXT
Code Example
Shell :: git add and remove 
Shell :: docker remove tag 
Shell :: how to install mongodb in ubuntu 20.04 lts fossa 
Shell :: how to uninstall all powershell modules 
Shell :: compress folder ubutnu 
Shell :: makefile ifeq or 
Shell :: vscode tab not working 
Shell :: git submodule remove 
Shell :: sudo tee 
Shell :: git unadd all files 
Shell :: install redux npm 
Shell :: iptable port forward 
Shell :: how to make git commit in the past 
Shell :: how to start docker in ubuntu 
Shell :: ssh config 
Shell :: install ros foxy 
Shell :: public key show 
Shell :: stress test cpu linux 
Shell :: setting git username 
Shell :: git rm cached 
Shell :: git remove all branches except master windows 
Shell :: heroku update remote url 
Shell :: gitignore all log files 
Shell :: view live log linux 
Shell :: youtube-dl uninstall mac 
Shell :: show remote git 
Shell :: while loop shell script 
Shell :: add image to readme 
Shell :: git commands 
Shell :: install-nodejs-and-npm 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =