I'm apologized, I have a (Bash) Unix shell script that should be run on PowerShell. I have to like to convert this but don't know how.
__ Bash___
For i in $(cat ./readersG3.txt);
Do rigado gateway remove-tag $i --key=ble-controller-PROD;
Done
I'm apologized, I have a (Bash) Unix shell script that should be run on PowerShell. I have to like to convert this but don't know how.
__ Bash___
For i in $(cat ./readersG3.txt);
Do rigado gateway remove-tag $i --key=ble-controller-PROD;
Done
Read this thread
Read file line by line in PowerShell
Get-Content .\readersG3.txt | ForEach-Object {
# do your operation on each $_
}
or
foreach($line in Get-Content .\readersG3.txt) {
# do your operation $line
}