Random things I found out
 

Inspecting a particular line in a large file if you know the line number

I had a mysqldump that wasn’t playing nice and would error out 745,273 lines into the dump. The error log wasn’t useful so to look at the exact line, I did this:

sed -n "745273 p" dump.sql

The syntax is:

sed -n "linenumber p" file.txt

Leave a Reply

Your email address will not be published. Required fields are marked *