Need to remove all those ^M characters from a DOS file? Try
tr -d \ \r < dosfile > newfile
(No space between two slashes.)
Need to remove all those ^M characters from a DOS file? Try
tr -d \ \r < dosfile > newfile
(No space between two slashes.)
Пример изменения текста:
lexus@reinstein:~$ echo lexus
lexuslexus@reinstein:~$ echo lexus | tr [a-z] [A-Z]
LEXUS
Подробности – в man tr.