* Re: [Comm] исключить символы
@ 2005-03-03 11:15 ` Eugene Ostapets
2005-03-03 11:19 ` Alexey Rusakov
2005-03-03 11:18 ` Alexey Rusakov
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Eugene Ostapets @ 2005-03-03 11:15 UTC (permalink / raw)
To: community
> Иногда после копирования файлов из Винды в Линукс, в конце каждой строчки
> появляются символы ^М, как от них избавиться ?
man dos2unix
--
С уважением,
Евгений Остапец
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] исключить символы
2005-03-03 11:15 ` [Comm] исключить символы Eugene Ostapets
@ 2005-03-03 11:18 ` Alexey Rusakov
2005-03-03 11:20 ` Denis Klykvin
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Alexey Rusakov @ 2005-03-03 11:18 UTC (permalink / raw)
To: community
Макс wrote:
> Привет!
>
> Иногда после копирования файлов из Винды в Линукс, в конце каждой
> строчки появляются символы ^М, как от них избавиться ?
>
dos2unix --help
Пакет с нечитаемым названием hd2u
--
Alexey "Ktirf" Rusakov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] исключить символы
2005-03-03 11:15 ` [Comm] исключить символы Eugene Ostapets
2005-03-03 11:18 ` Alexey Rusakov
@ 2005-03-03 11:20 ` Denis Klykvin
2005-03-03 11:30 ` Mike Lykov
2005-03-03 11:55 ` Afanasov Dmitry
4 siblings, 0 replies; 7+ messages in thread
From: Denis Klykvin @ 2005-03-03 11:20 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
On Thu, 3 Mar 2005 14:10:16 +0300
Макс wrote:
> Привет!
>
> Иногда после копирования файлов из Винды в Линукс, в конце каждой
> строчки появляются символы ^М, как от них избавиться ?
subst 's/^M$//' blah.txt
где "^M" делается кнопками Ctrl+V Ctrl+M
--
With Best Wishes, Denis Klykvin
JID: nikon@jabber.ru
XmmS now play: DMX - Ruff ryders anthem
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] исключить символы
` (2 preceding siblings ...)
2005-03-03 11:20 ` Denis Klykvin
@ 2005-03-03 11:30 ` Mike Lykov
2005-03-03 11:55 ` Afanasov Dmitry
4 siblings, 0 replies; 7+ messages in thread
From: Mike Lykov @ 2005-03-03 11:30 UTC (permalink / raw)
To: community
В сообщении от Четверг 03 Март 2005 15:10 Макс написал:
> Иногда после копирования файлов из Винды в Линукс, в конце каждой строчки
> появляются символы ^М, как от них избавиться ?
man tr
tr -d \\r
--
Mike Lykov
Samara, "Vesna" parfum company, System administrator
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] исключить символы
` (3 preceding siblings ...)
2005-03-03 11:30 ` Mike Lykov
@ 2005-03-03 11:55 ` Afanasov Dmitry
4 siblings, 0 replies; 7+ messages in thread
From: Afanasov Dmitry @ 2005-03-03 11:55 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
On Thu, Mar 03, 2005 at 02:10:16PM +0300, Макс wrote:
> Привет!
>
> Иногда после копирования файлов из Винды в Линукс, в конце каждой строчки
> появляются символы ^М, как от них избавиться ?
мда, тут насоветовали, так что я и свой способ дам:
recode /CR-LF../LF file
точно неуверен в команде, часто просто через vim справлюясь :)
--
С уважением,
Афанасов Дмитрий
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread