- </script><div id=content class=content><main><div class=sidetoc><nav class=pagetoc></nav></div><h1 id=preface><a class=header href=#preface>Preface</a></h1><p>You might be already aware of popular coreutils commands like <code>head</code>, <code>tail</code>, <code>tr</code>, <code>sort</code>, etc. This book will teach you more than twenty of such specialized text processing tools provided by the <code>GNU coreutils</code> package.<p>My <a href=https://github.com/learnbyexample/Command-line-text-processing>Command Line Text Processing</a> repo includes chapters on some of these coreutils commands. Those chapters have been significantly edited for this book and new chapters have been added to cover more commands.<h2 id=prerequisites><a class=header href=#prerequisites>Prerequisites</a></h2><p>Prior experience working with command line and <code>bash</code> shell, should know concepts like file redirection, command pipeline and so on.<p>If you are new to the world of command line, check out my curated resources on <a href=https://learnbyexample.github.io/curated_resources/linux_cli_scripting.html>Linux CLI and Shell scripting</a> before starting this book.<h2 id=conventions><a class=header href=#conventions>Conventions</a></h2><ul><li>The examples presented here have been tested on <code>GNU bash</code> shell and <strong>version 8.30</strong> of the <code>GNU coreutils</code> package.<li>Code snippets shown are copy pasted from <code>bash</code> shell and modified for presentation purposes. Some commands are preceded by comments to provide context and explanations. Blank lines have been added to improve readability, only <code>real</code> time is shown for speed comparisons and so on.<li>Unless otherwise noted, all examples and explanations are meant for <strong>ASCII</strong> characters.<li>External links are provided throughout the book for you to explore certain topics in more depth.<li>The <a href=https://github.com/learnbyexample/cli_text_processing_coreutils>cli_text_processing_coreutils repo</a> has all the code snippets, example files and other details related to the book. If you are not familiar with <code>git</code> command, click the <strong>Code</strong> button on the webpage to get the files.</ul><h2 id=acknowledgements><a class=header href=#acknowledgements>Acknowledgements</a></h2><ul><li><a href=https://www.reddit.com/r/commandline>/r/commandline/</a>, <a href=https://www.reddit.com/r/linux4noobs/>/r/linux4noobs/</a> and <a href=https://www.reddit.com/r/linux/>/r/linux/</a> — helpful forums<li><a href=https://stackoverflow.com/>stackoverflow</a> and <a href=https://unix.stackexchange.com/>unix.stackexchange</a> — for getting answers on pertinent questions related to cli tools<li><a href=https://tex.stackexchange.com/>tex.stackexchange</a> — for help on <a href=https://github.com/jgm/pandoc/>pandoc</a> and <code>tex</code> related questions<li><a href=https://www.canva.com/>canva</a> — cover image<li><a href=https://commons.wikimedia.org/wiki/File:Warning_icon.svg>Warning</a> and <a href=https://commons.wikimedia.org/wiki/File:Info_icon_002.svg>Info</a> icons by <a href=https://commons.wikimedia.org/wiki/User:Amada44>Amada44</a> under public domain<li><a href=https://pngquant.org/>pngquant</a> and <a href=https://github.com/RazrFalcon/svgcleaner>svgcleaner</a> for optimizing images<li><a href=https://inkscape.org/>Inkscape</a> for favicon<li><a href=https://github.com/rust-lang/mdBook>mdBook</a> — for web version of the book that you are currently reading <ul><li><a href=https://github.com/JorelAli/mdBook-pagetoc>mdBook-pagetoc</a> — for adding table of contents for each page<li><a href=https://github.com/wilsonzlin/minify-html>minify-html</a> — for minifying html files</ul></ul><h2 id=feedback-and-errata><a class=header href=#feedback-and-errata>Feedback and Errata</a></h2><p>I would highly appreciate if you'd let me know how you felt about this book, it would help to improve this book as well as my future attempts. Also, please do let me know if you spot any error or typo.<p>Issue Manager: <a href=https://github.com/learnbyexample/cli_text_processing_coreutils/issues>https://github.com/learnbyexample/cli_text_processing_coreutils/issues</a><p>E-mail: learnbyexample.net@gmail.com<p>Twitter: <a href=https://twitter.com/learn_byexample>https://twitter.com/learn_byexample</a><h2 id=author-info><a class=header href=#author-info>Author info</a></h2><p>Sundeep Agarwal is a freelance trainer, author and mentor. His previous experience includes working as a Design Engineer at Analog Devices for more than 5 years. You can find his other works, primarily focused on Linux command line, text processing, scripting languages and curated lists, at <a href=https://github.com/learnbyexample>https://github.com/learnbyexample</a>. He has also been a technical reviewer for <a href=https://www.packtpub.com/application-development/command-line-fundamentals>Command Line Fundamentals</a> book and video course published by Packt.<p><strong>List of books:</strong> <a href=https://learnbyexample.github.io/books/>https://learnbyexample.github.io/books/</a><h2 id=license><a class=header href=#license>License</a></h2><p>This work is licensed under a <a href=https://creativecommons.org/licenses/by-nc-sa/4.0/>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a><p>Code snippets are available under <a href=https://github.com/learnbyexample/cli_text_processing_coreutils/blob/main/LICENSE>MIT License</a><p>Resources mentioned in Acknowledgements section above are available under original licenses.<h2 id=book-version><a class=header href=#book-version>Book version</a></h2><p>1.0<p>See <a href=https://github.com/learnbyexample/cli_text_processing_coreutils/blob/main/Version_changes.md>Version_changes.md</a> to track changes across book versions.</main><nav class=nav-wrapper aria-label="Page navigation"><a rel=prev href=buy.html class="mobile-nav-chapters previous"title="Previous chapter"aria-label="Previous chapter"aria-keyshortcuts=Left> <i class="fa fa-angle-left"></i> </a><a rel=next href=introduction.html class="mobile-nav-chapters next"title="Next chapter"aria-label="Next chapter"aria-keyshortcuts=Right> <i class="fa fa-angle-right"></i> </a><div style="clear: both"></div></nav></div></div><nav class=nav-wide-wrapper aria-label="Page navigation"><a rel=prev href=buy.html class="nav-chapters previous"title="Previous chapter"aria-label="Previous chapter"aria-keyshortcuts=Left> <i class="fa fa-angle-left"></i> </a><a rel=next href=introduction.html class="nav-chapters next"title="Next chapter"aria-label="Next chapter"aria-keyshortcuts=Right> <i class="fa fa-angle-right"></i> </a></nav></div><script>
0 commit comments