Культурный офтопик
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: "Культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: Re: [room] Как найти файл в определённой кодировке?
Date: Fri, 26 Aug 2011 00:18:25 +0400
Message-ID: <4E56AE11.4060304@solin.spb.ru> (raw)
In-Reply-To: <20110824102350.GA6886@borodin.zarya>

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

24.08.2011 14:23, Andrew Borodin пишет:
> On Wed, Aug 24, 2011 at 02:14:39PM +0400, Alexei V. Mezin wrote:
>> 24.08.2011 14:04, Денис Черносов пишет:
> 
>> С последующим прогоном recode /CR (или /LF, надо в man 
>> уточнить), который уберет лишние символы там, где они есть.
> 
> Думаю, что
> 
> tr -d '\r'
> 
> будет быстрее.

  Если концевые пробелы не критичны, то как вариант:

sed -i 's/[[:space:]]*$//' ...

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

  reply	other threads:[~2011-08-25 20:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22 11:06 ` Alexei V. Mezin
2011-08-24 10:09     ` Alexei V. Mezin
2011-08-22 11:53 ` Sergey Korobitsin
2011-08-24 10:14     ` Alexei V. Mezin
2011-08-24 10:23       ` Andrew Borodin
2011-08-25 20:18         ` Aleksey Avdeev [this message]
2011-08-24 10:19     ` Aleksey Avdeev
2011-08-24 11:43     ` Sergey Korobitsin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E56AE11.4060304@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=smoke-room@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git