What is the best way to remove the first line of text from a large (10k +) group of text files.
If PowerShell is not a parameter, you can use the command more:
more
more [file] +2 > [new file]
Stick in a loop forthat also renames [new file]to [file]and you will have a file minus the first line.
for
[new file]
[file]
Not really, but should work.
If you can install TAIL in your sistem
tail -n +2 filename > finalfilename
shows all file names except the first line.
CMD, , "". tail. , more, .
tail
, buil-in.
, , , , bat.
, Windows, cygwin, powershell console, .
PowerShell - , : Powershell
load sed for windows . Then do it
c:\test> sed -i.bak "1d" file
use for loop to iterate files