<filename>bash-examples/capitalize.py
#!/usr/bin/env python3

import sys

for line in sys.stdin:
    print(line.strip().capitalize())


# run like this: cat test.txt | ./capitalize.py
# or
# ./capitalize.py < test.txt

<filename>bash-examples/capitalize.py
#!/usr/bin/env python3

import sys

for line in sys.stdin:
    print(line.strip().capitalize())


# run like this: cat test.txt | ./capitalize.py
# or
# ./capitalize.py < test.txt

#!/usr/bin/env python3 # run like this: cat test.txt | ./capitalize.py # or # ./capitalize.py < test.txt