Introducing Regular Expressions by Michael Fitzgerald
Author:Michael Fitzgerald [Michael Fitzgerald]
Language: eng
Format: epub, mobi, pdf
Tags: COMPUTERS / Programming / General
ISBN: 9781449338893
Publisher: O'Reilly Media
Published: 2012-07-09T16:00:00+00:00
Transforming Plain Text with sed
Let’s add some markup to the top of the text in rime.txt. We can do this with the insert command (i\). In the directory where the rime.txt file is located, enter the following at a shell prompt:
sed '1 i\ <!DOCTYPE html>\ <html lang="en">\ <head>\ <title>The Rime of the Ancyent Marinere (1798)</title>\ <meta charset="utf-8"/>\ </head>\ <body>\ q' rime.txt
After you press Enter or Return, your output should look like the following, with the tags at the top:
<!DOCTYPE html> <html lang="en"> <head> <title>The Rime of the Ancyent Marinere (1798)</title> <meta charset="utf-8"/> </head> <body> THE RIME OF THE ANCYENT MARINERE, IN SEVEN PARTS.
The command you just entered did not actually change the file—it only produced an output to your screen. I’ll show you how to write your changes to a file later.
Download
Introducing Regular Expressions by Michael Fitzgerald.mobi
Introducing Regular Expressions by Michael Fitzgerald.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12580)
Hello! Python by Anthony Briggs(9918)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9798)
The Mikado Method by Ola Ellnestam Daniel Brolund(9780)
Dependency Injection in .NET by Mark Seemann(9342)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8304)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7766)
Grails in Action by Glen Smith Peter Ledbrook(7699)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7560)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7106)
Microservices with Go by Alexander Shuiskov(6874)
Practical Design Patterns for Java Developers by Miroslav Wengner(6789)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6735)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6420)
Angular Projects - Third Edition by Aristeidis Bampakos(6145)
The Art of Crafting User Stories by The Art of Crafting User Stories(5670)
NetSuite for Consultants - Second Edition by Peter Ries(5601)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5412)
Kotlin in Action by Dmitry Jemerov(5068)
