in reply to Deleting first and last TWO(2) lines of a text file

# In file: "command.ed" 1 d $ d w Q # ed file-to-modify < command.ed >/dev/null

Replies are listed 'Best First'.
Re^2: Deleting first and last lines of a text file
by Anonymous Monk on May 16, 2014 at 09:42 UTC

    Above was display of lack of my ed-fu; after light "man ed" ...

    # In file: "command.ed" 1d $d wQ ...
      Hi I have to automate the task as I have to delete lines in the file every day before my original load task begins Thanks VJ

        So what is stopping you (from automating)?