sed:delete:delete_last_n_lines_of_a_file
SED - Delete - Delete last N lines of a file
sed -e :a -e '$d;N;2,10ba' -e 'P;D' # method 1 sed -n -e :a -e '1,10!{P;N;D;};N;ba' # method 2
sed/delete/delete_last_n_lines_of_a_file.txt · Last modified: 2020/08/17 09:14 by 192.168.1.1