Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Remove a line number with sed

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

printf "a\nb\nc\n" > file.txt
sed '2d' file.txt
a
c