Delete few lines from a file.

Hi there,

Want a help. I have a file with 10,000 lines.Want to delete first 50,000 lines thru script.What will be the comand. :confused:

Thanks
Satadru

$ sed '1,50000d' file

Another way :

$ tail +5001 file > new_file

Jean-Pierre.

Thanks everyone for your help.