Categories
Uncategorized

Convert upper case to lowercase

cat filename | tr '[:uper:]'  '[:lower:]' > newfilename

or

cat filename | tr [:uper:] [:lower:] > newfilename
Categories
Uncategorized

Replace ^M

Using Emacs

Esc-x, replace-string Ctrl-q, Ctrl-M, Enter, Enter

Using the terminal

sed -e “s/^M//” filename > newfilename