How do I delete only the second line from multiple text files?
-
Hello. I have several text files like the one below, and I only want to delete the content of the second line.
What should I do?
I tried to find a solution, but none of the answers worked for me.
Please help me…2310.txt
1-2023-10-01
2-2023-10-02
3-2023-10-03
4-2023-10-04
5-2023-10-052311.txt
1-2023-11-01
2-2023-11-02
3-2023-11-03
4-2023-11-04
5-2023-11-05 -
Find:
(?-s)\A.*\R\K.*\R
Replace: nothing
Search mode: Regular expression
Action: Replace-in-Files