← All Exercises

Pipeline Text Filtering

basicbash~10min

Background

Pipeline text processing is a fundamental Unix philosophy for data analysis.

Problem

Count unique IP addresses from a log file using pipeline of grep, sort, and uniq.

Input

A log file with IP addresses

Output

Unique IP counts

Sample tests

Sample 1

Input: access.log
Expected: unique IPs with counts

Your solution

Learning objective

Learn Unix pipeline philosophy and text processing