Tagged articles
2 articles
Page 1 of 1
Liangxu Linux
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
How to Delete Lines in Files Using sed on Linux
Qunar Tech Salon
Qunar Tech Salon
May 22, 2015 · Fundamentals

Using sed to Edit a Specific Range in a Large File

The article explains how to safely edit a particular line range in a large file using the Unix sed command, guiding readers through consulting the manual, understanding address syntax, and providing a concrete example command to replace text within the specified lines.

Shellcommand-linefile editing
0 likes · 3 min read
Using sed to Edit a Specific Range in a Large File