University of California San Diego
Linux Tools for Text Processing
University of California San Diego

Linux Tools for Text Processing

Robert Sinkovits

Instructor: Robert Sinkovits

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Use of basic and advanced tools for searching and manipulating text in a Linux environment

  • Regular expressions in the context of awk, sed and grep

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

October 2025

Assessments

12 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 7 modules in this course

In this module, we start by providing some background on Linux tools, the prerequisites for the course, Linux flavors, the motivation for automating tedious and repetitive tasks, and accessing the GitHub repository. We also provide optional instructions for Mac users who wish to access the standard version of the tools that are distributed with Linux distros.

What's included

2 videos5 readings

In this module, we dive in and cover the simpler tools in roughly their order of increasing complexity: head, tail, wc, expand, tac, paste, nl, tr, sort, shuf, uniq, split and cut. Along the way, we discuss the similarities and differences between the tools, potential pitfalls, limitations and linking tools together to create simple workflows.

What's included

9 videos1 reading5 assignments

This module explores three of the more powerful Linux text processing tools: grep, awk and sed. We start with using grep to find matches in a file. We then cover awk, which is actually a full programming language, but will limit our treatment to one-liners for extracting fields and records from a file. The module concludes with sed, a stream editor that can operate efficiently on arbitrarily large files.

What's included

4 videos3 assignments

This module introduces regular expressions and the key features such as character classes, quantifiers, groups, anchors, alternation and word boundaries. These features are all covered in the context of grep, but we'll see later that they carry over to awk and sed.

What's included

6 videos1 assignment

This module continues our discussion or regular expressions, going into some of the more advanced features that are only available in Perl compatible regular expressions, such as lazy matching, lookahead, lookbehind and backreferences. We also show how regexes can be used with awk and sed.

What's included

6 videos2 readings2 assignments

This is the last mandatory module of the course and includes the final exam and some closing remarks.

What's included

1 video1 reading1 assignment

This module contains the lecture notes used during the production of the videos. This is not required reading and is provided for those who wish to supplement the videos or who find that they learn better from written materials. Unlike the transcripts, these PDFs contain the commands that were executed during the videos. Note that while the videos generally follow the lecture notes, there will not be an exact correspondence between the videos and notes.

What's included

25 readings

Instructor

Robert Sinkovits
University of California San Diego
0 Courses0 learners

Offered by

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions