Die ersten 20 Zeilen von .txt Datein automatisch löschen lassen?
Hallo ich habe einen Ordner mit 1000en Unterordnern und überall befinden sich txt Dateien drinnen wo immer die ersten 20 Zeilen Text gelöscht werden sollen bei allen … das mit der Hand zu machen ist unmöglich oder dauert Wochen …
With the common Unix tools, this is a small thing. For a single file:
For all *.txt files in all folders under the current:
This should be tested carefully (sed without i-flag!). Or at least secure the data beforehand.
I’m sure it’s going with Powershell if you’re on Windows. But there’s the syntax even worse.
What is a common Unix tool, only Windows
These are commands that are directly available on Linux, MacOS and similar operating systems. On Windows, it’s probably the easiest thing to do with WSL2. And as I said, you can probably get the same thing with Powershell, but that’s where I get out.
Then I get Mal wsl2
parallel to your masses of files: