For coders TYPO3 Tech Corner

Delete the first/last lines of a (SQL) file

Delete the first/last lines of a (SQL) file

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

Back

"Code faster, look at the time" - does this sound familiar to you?

How about time and respect for code quality? Working in a team? Automated tests?

Join us