Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell show first few lines of command

your-command | select -First <number of lines or array-items>
#for example
Get-Process | select -First 3
cat filename | select -First 3
 
PREVIOUS NEXT
Tagged: #powershell #show #lines #command
ADD COMMENT
Topic
Name
4+8 =