SyntaxFix
Write A Post
Hire A Developer
Questions
Why don't you try to grep the return of your command ? Something like :
adb devices -l | grep 123abc12
It should return only the line you want to.