# teetail
> Like tee, but only the tail goes in the file

## Summary
A tee variant that only writes the tail (last N lines) of piped output to a file while showing everything on stdout.

## Capabilities
- Pipe output to both stdout and file like tee
- Only save the last N lines to the file
- Reduce log file sizes while maintaining recent output

## When to Use
- User wants tee functionality but only needs recent output in the file
- User wants to keep log files small

## When NOT to Use
- User needs the complete output saved to file

---
Source: https://littlescripts.sh/tools/teetail
