SED

From Tomelec
Revision as of 13:49, 30 January 2012 by Tom (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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