⚡️ From finding text to search and replace, from sorting to beautifying text and more 🎨
Shell Python
Switch branches/tags
Nothing to show
Clone or download


Join the chat at https://gitter.im/learnbyexample/scripting_course support learnbyexample

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.

⚠️ 🚧 Work in progress, stay tuned...


Rough drafts

Possible additions

  • Parsers for html, xml, csv, json, etc
  • Renaming files
  • other commands like split, combine, datamash, etc


  • Please open an issue for typos/bugs/suggestions/etc
    • Even for pull requests, open an issue for discussion before submitting PRs
    • or gitter group chat for discussion as well as for help/mentorship
  • Share the repo with friends/colleagues, on social media, etc to help reach other learners

support learnbyexample

  • In case you need to reach me, use gitter private chat
    • or mail me at echo 'yrneaolrknzcyr.arg@tznvy.pbz' | tr 'a-z' 'n-za-m'

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. Stay tuned for more


Includes only completed chapters

  • Read as ebook on gitbook
  • Download ebook for offline reading - link



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