Text Processing in the Command Line

Learning the command line is essential for a data analyst or data scientist. For example, oftentimes you'll be asked to process text data or do some data cleaning, and the command line has very powerful text processing tools like awk and sed, which help with getting acquainted with files and facilitate data cleaning. The lack of a graphical user interface (GUI) also makes the command line faster than other approaches for many tasks.

In our Text Processing in the Command Line course, you will learn how to read documentation and how to use standard streams together with redirection and pipelines to facilitate text processing. You'll learn about how to perform basic text processing using the command line, how to redirect and pipe output, and how to access documentation for different commands if you get stuck. When you finish the course, you'll have had enough hands-on practice that you’ll be comfortable using the command line in your day-to-day data analysis tasks..

If you're using a Windows PC or laptop, do not worry! You’ll practice your command line skills right on our platform.

By the end of this course, you'll be able to:

  • Read and explore documentation.
  • Inspect files in the filesystem.
  • Use basic text processing.
  • Understand the different kinds of output.
  • Redirect and pipe output.
  • Undersand streams and file descriptors.

Learn by coding!

Get started today.

By creating an account you agree to accept our terms of use and privacy policy.

Learn to use the Process Text using the Command Line

Getting Help and Reading Documentation

Learn about different types of commands and how to access their documentation.

File Inspection

Learn how to inspect the contents of files.

Text Processing

Learn how to do basic text processing.

Redirection and Pipelines

Learn how to redirect output to files. Learn about pipelines, and the Unix Philosophy

Standard Streams and File Descriptors

Learn about standard streams and input redirection.

(function(d) { d.addEventListener("DOMContentLoaded", function() { var pathname = d.location.pathname.replace(/^[/]|[/]$/g, "").replace("/", "-"); var tags = d.getElementsByTagName("iframe"); var type = pathname.startsWith("course") ? "?course=" : pathname.startsWith("path") ? "?path=" : null; if (type) { var i; for (i = 0; i < tags.length; i++) { if (tags[i].src.indexOf("signup#iframe") !== -1) { tags[i].src = tags[i].src.replace("#iframe", "") + type + pathname + "#iframe"; } } } }, false); })(document);