DOS line endings
Posted
#1
(In Topic #1061)
Regular

Amazing after all these years that I have never had to cope with this before…
I know that there are bash ways of doing it, but
"dos2unix" is not ubiquitous.
the "sed" way is witchcraft (IMPO)
cat <file> | tr -d '\r' is the most elegant but looks terrible in File.Load(Shell(cat <file> | tr -d '\r'>temp$ ( … blah blah blah
To put it simply, if I load the file all the "\r" characters remain and screw up my parsing of the file. I just want to make them "go away with extreme prejudice".
tia
b
Posted
Regular

/lang/replace - Gambas Documentation
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Guru

Posted
Regular

Thanks guys.
b
1 guest and 0 members have just viewed this.


