Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9146

How to get the first line from cmd command output?

$
0
0

I need to get only first line from Windows cmd command.

Example of command:

dir /b /o-d cert*.pem

it returns:

cert1.pemcert2.pemcert3.pem

How to get only first line to return cert1.pem?

Operational System: Windows 10


Viewing all articles
Browse latest Browse all 9146

Trending Articles