Questions tagged [line-endings]

Line-ending signifies end of line. Depending on operating system line-endings are different.

516 questions
-1
votes
1 answer

Hash of a textual file for integrity purposes

I have a more general requirement to track changes in asset files that are committed into source code and deployed inside the binaries, but for now I am implementing it in unit testing context and facing a potential problem for the future. Before…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
-1
votes
1 answer

how to use awk to do a number comparisons and create a list - using Awk on macOS with CRLF line endings

I'm trying to list values greater than my value listed (output from my knife command). I am trying to do this using awk, i've been researching examples and came up with this. However, my expected output does not work. For example with this command,…
noober
  • 1,427
  • 3
  • 23
  • 36
-1
votes
1 answer

Why are the line endings different in every OS?

Windows has a certain format, and if a file is to be used in Linux, the line endings have to be converted. Isn't the line ending just a character like any other? Why is it treated specially?
Creator
  • 151
  • 1
  • 9
-2
votes
1 answer

Python Pandas to_csv() blank values problem - from Windows to Mac/Linux

I have created a set of CSVs using Pandas to_csv() method. I am on Windows. The CSVs are then fed into POST requests that insert the data into a CMS. However, 2 out of the 15 columns in the CSV are showing up blank after POST request. My colleague…
mustacheMcGee
  • 481
  • 6
  • 19
-2
votes
1 answer

strange issue with labels

I have a script with: IF "%USER_COUNTRY%"=="ie" IF NOT "%POS_TYPE%" == "ipos" ( GOTO IE_Start) and below I have some labels: :PT_Start ECHO Start PT rem for PT Num Lock must be activated before POS start .\native\klocks.exe +n IF NOT EXIST…
Mateusz Gaweł
  • 673
  • 1
  • 8
  • 22
-3
votes
2 answers

Why is PHP explode keeping the \n?

Under Linux, I'm submitting a form containing text with \n as the line ending. That's the HTML:

Paste your text:

Rodrigo
  • 4,706
  • 6
  • 51
  • 94
1 2 3
34
35