I code for living
© 2010 - 2023
To delete lines 2, 12-17 and line 57 from file data.txt using sed you could do something like this:
sed -e '2d;12,17d;57d' data.txt
[Source]