sed:text_conversion_and_substitution:convert_unix_newlines_lf_to_dos_format
This is an old revision of the document!
Table of Contents
SED - Text Conversion and Substitution - 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/text_conversion_and_substitution/convert_unix_newlines_lf_to_dos_format.1597572904.txt.gz ยท Last modified: 2020/08/16 10:15 by 192.168.1.1