0

Convert MacOS Unix CSV to Windows DOS CSV

neo created at2 months ago view count: 15
echo "\uFEFF" > /tmp/data.csv
    cat /path/macos.csv >> /tmp/data.csv
    cat /tmp/data.csv > /path/macos.csv

echo

Echo the STRING(s) to standard output.

-n
do not output the trailing newline
-e
enable interpretation of backslash escapes
-E
disable interpretation of backslash escapes (default)
--help
display this help and exit
--version
output version information and exit

If -e is in effect, the following sequences are recognized:

\\
backslash
\a
alert (BEL)
\b
backspace
\c
produce no further output
\e
escape
\f
form feed
\n
new line
\r
carriage return
\t
horizontal tab
\v
vertical tab
\0NNN
byte with octal value NNN (1 to 3 digits)
\xHH
byte with hexadecimal value HH (1 to 2 digits)

NOTE: your shell may have its own version of echo, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.  

cat

Concatenate FILE(s) to standard output.

With no FILE, or when FILE is -, read standard input.

-A, --show-all
equivalent to -vET
-b, --number-nonblank
number nonempty output lines, overrides -n
-e
equivalent to -vE
-E, --show-ends
display $ at end of each line
-n, --number
number all output lines
-s, --squeeze-blank
suppress repeated empty output lines
-t
equivalent to -vT
-T, --show-tabs
display TAB characters as ^I
-u
(ignored)
-v, --show-nonprinting
use ^ and M- notation, except for LFD and TAB
--help
display this help and exit
--version
output version information and exit
 
report

Comments

search keywords