2017-10-01 · 1 min read
sed to truncate a file in-place
sed -i '11001,$ d' filename
-imeans in place.
11001,$means the lines from 11001 to the end.
As a result, this command will create a file with
My Tech Newsletter
Get emails from me about programming & web development. I usually send it once a month