This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5329|Reply: 2

Windows uses PowerShell to get the last 10 lines of Notepad

[Copy link]
Posted on 10/29/2022 10:53:17 AM | | |
Requirements: The file is relatively large, I can't open the file with Notepad Notepad, I just want to view the last 10 lines of data in the notepad, how to get the last 10 lines of data without installing or using any third-party tools?

If you want to see the first few lines of the file, you can use CMD to execute the more command:


PowerShell looks at the first 10 rows of data in Notepad with the following command:


PowerShell looks at the last 10 rows of data in Notepad with the following command:


Select-Object Reference:The hyperlink login is visible.





Previous:Twilio foreign SMS verification code platform
Next:Dapr (1) Dapr introduction and installation tutorial
Posted on 11/15/2022 6:26:57 PM |
Take a look and learn
 Landlord| Posted on 3/27/2023 9:22:28 PM |
Check out the last 10 lines

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com