Skip to content

Commit

Permalink
updates for version 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
learnbyexample committed Apr 23, 2021
1 parent ef451c4 commit 0bbf511
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 128 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Example based guide to mastering GNU sed.
<img src="./images/sed.png" width="320px" height="400px" />
</p>

The book also includes exercises to test your understanding, which is presented together as a single file in this repo - [Exercises.md](./exercises/Exercises.md)
The book also includes exercises to test your understanding, which is presented together as a single file in this repo [Exercises.md](./exercises/Exercises.md)

For solutions to the exercises, see [Exercise_solutions.md](./exercises/Exercise_solutions.md).

Expand All @@ -21,10 +21,10 @@ You can purchase the book using these links:
* https://gumroad.com/l/gnu_sed
* https://leanpub.com/gnu_sed
* You can also get the book as part of **Magical one-liners** bundle from https://gumroad.com/l/oneliners or https://leanpub.com/b/oneliners
* You can also get the book as part of **Awesome Regex** bundle from https://leanpub.com/b/regex or https://gumroad.com/l/regex
* You can also get the book as part of **Awesome Regex** bundle from https://gumroad.com/l/regex or https://leanpub.com/b/regex
* See https://learnbyexample.github.io/books/ for list of other books

For a preview of the book, see [sample chapters](https://github.com/learnbyexample/learn_gnused/blob/master/sample_chapters/sed_sample_chapters.pdf)
For a preview of the book, see [sample chapters](https://github.com/learnbyexample/learn_gnused/blob/master/sample_chapters/gnu_sed_sample.pdf)

The book can also be [viewed as a single markdown file in this repo](./gnu_sed.md). See my blogpost on [generating pdf from markdown using pandoc](https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/) if you are interested in the ebook creation process.

Expand All @@ -34,11 +34,11 @@ For web version of the book, visit https://learnbyexample.github.io/learn_gnused

# Feedback

Please open an issue if you spot any typo/errors.
[Open an issue](https://github.com/learnbyexample/learn_gnused/issues) if you spot any typo/errors.

I'd also highly appreciate your feedback about the book.
:warning: :warning: Please DO NOT submit pull requests. Main reason being any modification requires changes in multiple places.

Goodreads: https://www.goodreads.com/book/show/48641172-gnu-sed
I'd also highly appreciate your feedback about the book.

Twitter: https://twitter.com/learn_byexample

Expand All @@ -65,11 +65,11 @@ Twitter: https://twitter.com/learn_byexample

# Acknowledgements

* [GNU sed documentation](https://www.gnu.org/software/sed/manual/sed.html) - manual and examples
* [stackoverflow](https://stackoverflow.com/) and [unix.stackexchange](https://unix.stackexchange.com/) - for getting answers to pertinent questions on `bash`, `sed` and other commands
* [tex.stackexchange](https://tex.stackexchange.com/) - for help on `pandoc` and `tex` related questions
* Cover image
* [LibreOffice Draw](https://www.libreoffice.org/discover/draw/)
* [GNU sed documentation](https://www.gnu.org/software/sed/manual/sed.html) manual and examples
* [stackoverflow](https://stackoverflow.com/) and [unix.stackexchange](https://unix.stackexchange.com/) for getting answers to pertinent questions on `bash`, `sed` and other commands
* [tex.stackexchange](https://tex.stackexchange.com/) for help on [pandoc](https://github.com/jgm/pandoc/) and `tex` related questions
* [LibreOffice Draw](https://www.libreoffice.org/discover/draw/) — cover image
* [pngquant](https://pngquant.org/) and [svgcleaner](https://github.com/RazrFalcon/svgcleaner) for optimizing images
* [softwareengineering.stackexchange](https://softwareengineering.stackexchange.com/questions/39/whats-your-favourite-quote-about-programming) and [skolakoda](https://skolakoda.org/programming-quotes) for programming quotes
* [Warning](https://commons.wikimedia.org/wiki/File:Warning_icon.svg) and [Info](https://commons.wikimedia.org/wiki/File:Info_icon_002.svg) icons by [Amada44](https://commons.wikimedia.org/wiki/User:Amada44) under public domain
* [arifmahmudrana](https://github.com/arifmahmudrana) for spotting an ambiguous explanation
Expand All @@ -86,3 +86,4 @@ Special thanks to all my friends and online acquaintances for their help, suppor
The book is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/)

The code snippets are licensed under MIT, see [LICENSE](./LICENSE) file

8 changes: 8 additions & 0 deletions Version_changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<br>

### 1.5

* Clarified use of `/dev/stdin` with the `r` command
* Updated timing data for speed comparison examples
* Corrected various typos, improved descriptions, comments, external links, etc

<br>

### 1.4

* Clarified BRE vs ERE difference for line anchor escaping
Expand Down
4 changes: 2 additions & 2 deletions exercises/Exercise_solutions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Exercise solutions

Exercise related files are available from [exercises folder](https://github.com/learnbyexample/learn_gnused/tree/master/exercises)
>![info](../images/info.svg) Exercise related files are available from [exercises folder](https://github.com/learnbyexample/learn_gnused/tree/master/exercises).
<br>

Expand Down Expand Up @@ -473,7 +473,7 @@ sososoXsososo
Input is a file downloaded from internet as shown below.
```bash
$ wget https://www.gutenberg.org/files/345/345.txt -O dracula.txt
$ wget https://www.gutenberg.org/files/345/old/345.txt -O dracula.txt
$ sed -nE '/professor/I{/quip|this/p}' dracula.txt
equipment of a professor of the healing craft. When we were shown in,
Expand Down
6 changes: 4 additions & 2 deletions exercises/Exercises.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Exercises

Exercise related files are available from [exercises folder](https://github.com/learnbyexample/learn_gnused/tree/master/exercises)
>![info](../images/info.svg) Exercise related files are available from [exercises folder](https://github.com/learnbyexample/learn_gnused/tree/master/exercises).
>![info](../images/info.svg) For solutions, see [Exercise_solutions.md](https://github.com/learnbyexample/learn_gnused/blob/master/exercises/Exercise_solutions.md).
<br>

Expand Down Expand Up @@ -464,7 +466,7 @@ sososoXsososo
Input is a file downloaded from internet as shown below.
```bash
$ wget https://www.gutenberg.org/files/345/345.txt -O dracula.txt
$ wget https://www.gutenberg.org/files/345/old/345.txt -O dracula.txt
$ sed ##### add your solution here
equipment of a professor of the healing craft. When we were shown in,
Expand Down
Loading

0 comments on commit 0bbf511

Please sign in to comment.