[conspire] RElief: Re: CAPS - eyes hurt
Alex Kleider
akleider at sonic.net
Tue Dec 18 23:45:59 PST 2018
On 2018-12-18 23:06, Michael Paoli wrote:
>> Date: Tue, 18 Dec 2018 15:59:20 -0800
>> From: Rick Moen <rick at linuxmafia.com>
>> To: conspire at linuxmafia.com
>> Subject: Re: [conspire] successful install, at last
>>
>> Quoting Paul Zander (paulz at ieee.org):
>>
>>> REPLIES BELOW, ALL IN CAPS
>>
>> Wow, my eyes hurt.
>
> Ouch ...
> Fortunately we have effective treatments for that, e.g. RElief can
> be provided by REs - Regular Expressions ...
> Which, e.g., can all be done in lovely vi(1),
I very much admire Michael's facility with Unix tools.
Another approach that might be easier to implement:
======== my little script =======
# File: nouppers.py
"""
Usage:
python nouppers.py infile [> outfile]
Prints infile with all uppercase letters changed to lowercase.
Output can be redirected to a separate file.
"""
import sys
infile = sys.argv[1]
with open(infile, 'r') as file_object:
text = file_object.read()
nouppers = text.lower()
# print nouppers # Use this line if running python2.7
print(nouppers) # Use this line if running python3
============================================
Alex
ps script written using vim and then (after a modicum of testing)
copy/pasted into text of email
More information about the conspire
mailing list