Tail & Head in Powershell

Tail & Head in Powershell

  • Comments 1
  • Likes

Al jaren verbaas ik me over het feit dat er geen Windows variant is van tail en head (tenminste geen standaard tool in Windows zelf).
Nu eindelijk is het zover... Windows heeft tail functionaliteit zonder teveel moeite..

het werkt door handig gebruik te maken van get-content en select-object.

tail myfile.txt -l 100 = gc myfile.txt | select -last 10

head myfile.txt 10 = gc myfile.txt | select -first 10

tail -f myfile.txt = gc myfile.txt -Wait

Enjoy!!!

Comments
  • Exchange 2007 bugvrij?? Helaas niet Na bijna een jaar met Exchange 2007 gewerkt te hebben ben ik toch

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
Search Blogs