Convert CSV records to TSV: Difference between revisions

RETURN
m (→‎{{header|Phix}}: added "backtick strings are not escaped" comment)
(RETURN)
Line 91:
the platform.
 
Use the following as a test file, noting(after changing the RETURN string to the RETURN control character) and note any discrepancies with the
requirements,; andin specificallyaddition, statingindicate how strings containing backslashes
(besides those preceding r'[nrt]) are transformed.
 
; TEST FILE
The test file should include a line with a RETURN ('\r') character.
One way to change the RETURN in the following to the '\r' control character would be
to use `sed`, perhaps along the lines of: sed -i.bak $'s/RETURN/\r/' TEST.csv
<pre>
a,"b"
Line 108 ⟶ 111:
a\n\rb
a�b, That is a NUL character
aRETURNb, Be sure to change RETURN to the '\r' control character (#xd)
a
b, That is a LF (linefeed) character
a\b
</pre>
2,484

edits