Today I Learned

hashrocket A Hashrocket project

Remove a line number with sed

Sed can remove a line in a file by its number with 'd':

printf "a\nb\nc\n" > file.txt
sed '2d' file.txt
a
c
See More #workflow TILs