SED

From Tomelec
Jump to: navigation, search

lower case to UPPER CASE

Convert all characters from lower case to upper case.

sed ’s/./\u&/g’ infile.txt > outfile.txt

UNIX text to DOS text (CR/LF)

Convert/add line endings

sed 's/$'"/`echo \\\r`/" infile.txt > outfile.txt