learnbyexample / learn_gnused Goto Github PK
View Code? Open in Web Editor NEWExample based guide to mastering GNU sed
Home Page: https://learnbyexample.github.io/learn_gnused/
License: MIT License
Example based guide to mastering GNU sed
Home Page: https://learnbyexample.github.io/learn_gnused/
License: MIT License
Many of us are here mostly because we chose Linux as a subject to learn in our college. And now it requires us to learn and get comfortable with sed but I find no guide on how to correctly utilise such repository.
Like how am I supposed to learn? Should I fork and make changes in the exercise section or copy input codes to feed my terminal and practise? but I would like to keep a track of my achievements and progress of learning sed.
This would be very helpful and appreciated.
Thank you.
sed
can easily delete text between blank lines but gnused
treats blank lines differently.
An example would be worthwhile. Two come to mind, replacing three blank lines with a single blank line and deleting a line and the following blank line (paragraph) if it contains a search string. Non-gnused:
sed 's/\n.*kill.*\n\n/\n/g' sample_text
sample_text
This is a
sample text
kill = whatever
demonstration.
output
This is a
sample text
demonstration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.