On 06/12/2022 16:00, Dale R. Worley wrote:
It seems to me that there's more going on than first meets the eye.
Yes. Yair is trying to process text files written on a Windows system (line ending \r\n) on a Linux system (line ending \n). That Python wrote them is neither here nor there.
Windows text files have to be converted to Linux format before processing - either inline (tr -d '\r') or in mass (dos2unix).
Expecting bash to cope is a non-starter. Yair, how about using the Python installed in the WSL instance. -- Chris Elvidge England