-
-
Save judy2k/de8a2fe5ef18954e79b96b0e5abaf0e3 to your computer and use it in GitHub Desktop.
trim - a useful (but tiny) script to trim surrounding whitespace from some output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
def main(): | |
i = sys.stdin.read() | |
sys.stdout.write(i.strip()) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment