Awesome Open Source
Awesome Open Source

Command Line Text Processing

Learn about various commands available for common and exotic text processing needs. Examples have been tested on GNU/Linux - there'd be syntax/feature variations with other distributions, consult their respective man pages for details.

⚠️ ⚠️ I'm no longer actively working on this repo. Instead, I've been converting existing chapters into ebooks (see ebook section below for links), available under the same license. These ebooks are better formatted, updated for newer versions of the software, includes exercises, solutions, etc. Once all the chapters have been converted, I'll be archiving this repo.


Rough drafts


  • Please open an issue for typos or bugs
    • As this repo is no longer actively worked upon, please do not submit pull requests
  • Share the repo with friends/colleagues, on social media, etc to help reach other learners
  • In case you need to reach me, mail me at echo '[email protected]' | tr 'a-z' 'n-za-m' or send a DM via twitter

Webinar recordings

Recorded couple of videos based on content in the chapters, not sure if I'll do more


Check out exercises directory to solve practice questions, right from the command line itself.

As of now, only grep exercises has been added.


Includes only completed chapters

  • Read as online ebook at gitbook
  • All links are now automatically redirected to, so there's no longer an option to download ebooks for offline reading

Individual online ebooks with better formatting, explanations, exercises, solutions, etc:

See for links to pdf/epub versions and other ebooks



This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
ruby (12,331
shell (9,857
linux (2,336
perl (1,243
command-line (509
regex (160
ebook (104
text-processing (54
awk (46
grep (26
sed (21

Find Open Source By Browsing 7,000 Topics Across 59 Categories