computing
  • 0

Batch File To Delete Line

  • 0

Is it possible for a batch script to delete a single line in a txt file?
example:
my.txt contains the following:
ab
cd

is it possible to delete cd using batch?

Share

0 Answers

  1. also, what if i dont know what i want to delete.
    example:
    a random line.
    i just need a batch file to delete the last or last 2 lines.

    • 0