retiolus to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish • 7 months agoNaming Torrentsfiles.catbox.moeimagemessage-square110fedilinkarrow-up1591arrow-down126
arrow-up1565arrow-down1imageNaming Torrentsfiles.catbox.moeretiolus to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish • 7 months agomessage-square110fedilink
minus-square@murtaza64linkEnglish9•7 months agoIf this is about line endings, surely a simple shell or python script could correct them?
minus-square@[email protected]linkfedilinkEnglish9•7 months agoThere’s already a command for it: https://linux.die.net/man/1/dos2unix
minus-square@[email protected]linkfedilinkEnglish3•edit-27 months agoDoes windows add an extra character at the end that gets converted to new line on linux? Because the other day I were copying a script and after pasting it an extra line was added after every single line, even the empty lines. how it looked when I copied it: bla bla bla what it turned into: bla bla bla
minus-square@[email protected]linkfedilinkEnglish11•7 months agoWindows uses CR LF (carriage return, line feed), whereas Unix just uses LF. For added fun, macs use CR.
minus-squarenoughtnautlinkfedilinkEnglish5•7 months ago For added fun, macs use CR. This used to be true, for sure, but I thought this changed with OS X (which is essentially PrettyBSD) ?
minus-square@[email protected]linkfedilinkEnglish4•7 months agoYou’re right. Notepad++ still lists macs as using CR for their EOL conversion tool, so I didn’t realize.
If this is about line endings, surely a simple shell or python script could correct them?
There’s already a command for it:
https://linux.die.net/man/1/dos2unix
Does windows add an extra character at the end that gets converted to new line on linux? Because the other day I were copying a script and after pasting it an extra line was added after every single line, even the empty lines.
how it looked when I copied it:
bla bla bla
what it turned into:
bla bla bla
Windows uses CR LF (carriage return, line feed), whereas Unix just uses LF. For added fun, macs use CR.
This used to be true, for sure, but I thought this changed with OS X (which is essentially PrettyBSD) ?
You’re right. Notepad++ still lists macs as using CR for their EOL conversion tool, so I didn’t realize.