# Tee and Xargs: Splitting and Feeding

tee saves what flows through a pipe into a file and passes it on, so you can keep a report and read it at once, and xargs turns the lines it reads into arguments for commands such as mkdir and rm, which don't read a pipe.

![Cheat sheet for the lesson Tee and Xargs: Splitting and Feeding: tee saves what flows through a pipe into a file and passes it on, so you can keep a report and read it at once, and xargs turns the lines it reads into arguments for commands such as mkdir and rm, which don't read a pipe.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/d05d8677370e4cb69ba7057d7bb64758.webp)

- Category: Bash
- Level: Journeyman
- Tags: argument, linux, tee, unix, xargs
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-tee-and-xargs-cheat-sheet
