Delete faulty rows from a large SQL file:
# Delete first 20 lines
tail -n +20 dump.sql > dump.tmp && mv dump.tmp dump.sql
# Delete last 20 lines
head -n -20 dump.sql > dump.tmp && mv dump.tmp dump.sql
Delete faulty rows from a large SQL file:
# Delete first 20 lines
tail -n +20 dump.sql > dump.tmp && mv dump.tmp dump.sql
# Delete last 20 lines
head -n -20 dump.sql > dump.tmp && mv dump.tmp dump.sql
How about time and respect for code quality? Working in a team? Automated tests?