Computer Learning Zone CLZ Access Excel Word Windows

Education is for improving the lives of others and for leaving your community and world better than you found it.

-Marian Wright Edelman
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > PowerShell > Read contents of a file < Output in a Table | Create a file or folder >
Read Contents of a File
By Alex Hedley   29 days ago


 S  M  L  XL  FS  Join Now

In this PowerShell tutorial you will learn how to read the contents of a file using the cmdlet  Get-Content.  

Members

There is no extended cut and nothing to download.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!

Code

Get-Content .\README.md

Get-Content -Path .\README.md -TotalCount 5

(Get-Content -Path .\README.md)[-1]

Get-Content -Path .\README.md -Tail 1

Prerequisites

Links

Recommended Courses

Learn More

FREE PowerShell Beginner Level 1 COMING SOON
PowerShell - Microsoft Learn
GitHub PowerShell Repo
PowerShell Gallery

Free Templates

TechHelp Free Templates
 

Resources

Mailing List - Get emails when new videos released
Consulting - Need help with your scripts
Tip Jar - Your tips are graciously accepted

Questions?

Please feel free to post your questions or comments below or post them in the Forums.

KeywordsRead contents of a file in PowerShell

PowerShell, PowerShell Terminal, Terminal, POSH, PS, cmdlet, get-content, get, content

 

 

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Read Contents of a File
Get notifications when this page is updated
 
 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/13/2024 6:07:26 PM. PLT: 1s
Keywords: PowerShell, PowerShell Terminal, Terminal, POSH, PS, cmdlet, get-content, get, content  Page Tag: FORUMADMIN  PermaLink  Read contents of a file in PowerShell