I want a batch file which: removes a certain line [line number by %lnum%] in a txt file.
I want a batch file which: removes a certain line [line number by %lnum%]
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That sounds like a job for
sed. On windows, you’d have to install a windows port and then call sed from within your batch file.To delete the 4th line: