The book heavily leans on examples to present features of sed as well as regular expressions one by one. It is recommended that you manually type each example and experiment with them. Understanding both the nature of sample input string and the output produced is essential.
You should have prior experience working with command line and bash shell, should know concepts like file redirection, command pipeline and so on.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download GNU SED ebook for free in PDF format (0.7 MB).
Table of Contents
In-place file editing
BRE/ERE Regular Expressions
z, s and f command line options
append, change, insert
Adding content from file
Processing lines bounded by distinct markers
Gotchas and Tricks
The Gulf of Mexico is an open and dynamic marine ecosystem rich in natural resources but heavily impacted by human activities, including agricultural, industrial, commercial and coastal development. Nutrients and pollutants from coastal communities and dozens of rivers flow into the Gulf, including material from the Mississippi River watershed, whi...
The utility simply known as make is one of the most enduring features of both Unix and other operating systems. First invented in the 1970s, make still turns up to this day as the central engine in most programming projects; it even builds the Linux kernel. In the third edition of the classic Managing Projects with GNU make, readers will learn why ...
This book discusses biogeochemical processes relevant to carbon and aims to provide readers, graduate students and researchers, with insight into the functioning of marine ecosystems. A carbon centric approach has been adopted, but other elements are included where relevant or needed. The book focuses on concepts and quantitative understanding of p...
When processing text files, the awk language is ideal for handling data extraction, reporting, and data-reformatting jobs. This practical guide serves as both a reference and tutorial for POSIX-standard awk and for the GNU implementation, called gawk. This book is useful for novices and awk experts alike.
In this thoroughly revised 5th edition, ...
This book presents an ethnographic study of how grassroots activism in Venezuela during the Chávez presidency can be understood in relation to the country's history as a petro-state. Taking the contested relationship between the popular sectors and the Venezuelan state as a point of departure, Iselin Åsedotter Strønen explores how notions such a...
This book is the first comprehensive guideline for the beryllium-7 (Be-7) technique that can be applied to evaluate short-term patterns and budgets of soil redistribution in agricultural landscapes. While covering the fundamental and basic concepts of the approach, this book distinguishes itself from other publications by offering step-by-step inst...