R
R
Rampage14102021-08-11 13:17:40
PowerShell
Rampage1410, 2021-08-11 13:17:40

How to select a part from each row from an array?

Help to select parts of strings from an array. The ./adb devices command displays the serial numbers of connected devices in the form:

List of devices attached
8TU9X20627K00804        device
nzschqonx8zd697p        device

From the text, you only need to select serial numbers in order to further transfer them to the ForEach-Object loop and in parallel, multi-threaded, start installing applications on each device.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-08-11
@Rampage1410

Split
https://docs.microsoft.com/en-us/powershell/module...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question