User Tools

Site Tools


sed:convert:convert_unix_newlines_lf_to_dos_format

SED - Convert - Convert Unix newlines (LF) to DOS format

In UNIX Environments

sed 's/$'"/`echo \\\r`/"             # Command line under bash.
sed "s/$/`echo -e \\\r`/"            # Command line under ksh.
sed "s/$/`echo \\\r`/"               # Command line under zsh.
sed 's/$/\r/'                        # gsed 3.02.80.

In DOS Environments

sed "s/$//"                          # Method 1.
sed -n p                             # Method 2.
sed/convert/convert_unix_newlines_lf_to_dos_format.txt · Last modified: 2020/08/16 11:15 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki