Liangxu Linux
Dec 4, 2023 · Fundamentals
How to Delete Lines in Files Using sed on Linux
This guide explains how to use the Linux sed command to delete specific lines, line ranges, empty lines, or lines matching a pattern, and shows how to apply changes directly to the original file with the –i option, including example commands and cautions.
command-linefile editingsed
0 likes · 4 min read
