text/trim
- 252 bytes
- Python
- View raw
1#!/usr/bin/env python3
2"""
3Trim removes leading/trailing whitespace from a string passed on stdin.
5Usage:
7 $ echo " hello world " | trim
8 hello world
10"""
text/trim1#!/usr/bin/env python3
2"""
3Trim removes leading/trailing whitespace from a string passed on stdin.
5Usage:
7 $ echo " hello world " | trim
8 hello world
10"""