![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | removing first three lines in a text file I have a 10mb text file and instead of doing get-contents set-contents i would like to just remove the first 3 lines of the text file. Is there a way to do this quickly? Chris |
My System Specs![]() |
| | #2 (permalink) |
| | Re: removing first three lines in a text file >I have a 10mb text file and instead > of doing get-contents set-contents i > would like to just remove the first 3 > lines of the text file. Is there a way > to do this quickly? > Perhaps Microsoft's Log Parser http://www.microsoft.com/technet/scr...r/default.mspx |
My System Specs![]() |
| | #3 (permalink) |
| | Re: removing first three lines in a text file If you mean quickly in terms of CPU cycles, there is nothing that works with files in a classical text-based sense that will do that. Generally every single utility that does some kind of tailing operation has to go through the entire file. If your concern is resource loading, your best bet is to write to a new file line-by-line after skipping 3 lines, then delete the old file and rename the new one. "fixitchris" <fixitchris@discussions.microsoft.com> wrote in message news:8DFE1628-3635-40A9-9C44-2F585BE45873@microsoft.com... >I have a 10mb text file and instead of doing get-contents set-contents i > would like to just remove the first 3 lines of the text file. Is there a > way > to do this quickly? > > Chris |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Using lines in a text file | PowerShell | |||
| Howto: Add lines of text from a specific point in a text file.. | VB Script | |||
| get the number of lines in a text file | PowerShell | |||
| Removing lines from a text file | PowerShell | |||
| Removing lines from a text file by matching against substrings | PowerShell | |||