ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <az@zolochevskie.net>
To: community@lists.altlinux.org
Subject: Re: [Comm] сДЮКХРЭ ОЕПБСЧ ЯРПНЙС ОН СЯКНБХЧ.
Date: Sat, 08 Apr 2006 18:00:41 +0300
Message-ID: <e18j6n$pvs$1@sea.gmane.org> (raw)
In-Reply-To: <e18iug$p3b$1@sea.gmane.org>

Artem Zolochevskiy wrote:
> Oleg Dolgov wrote:
> 
>>Здравствуйте.
>>
>>Есть проблема, как автоматизировать не знаю.
>>Надо пройтись по примерно 4000 файлам и если первая строка начинается с
>>From, то ее удалить.
>>
>>Чем это можно сделать на автомате? Руками такое кол-во... пугает.
>>
>>Заранее благодарен.
> 
> 
> 
> for i in `ls *`; do if [ `head -n1 $i` = From ]; then sed -i '/^From/ d' 
> $i; fi ;done
> 

ой нет так не пойдкт, там ведб надо __начинается_ с From




      parent reply	other threads:[~2006-04-08 15:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-08 13:24 [Comm] Удалить первую строку по условию Oleg Dolgov
2006-04-08 13:34 ` Alexey Rusakov
2006-04-08 14:40   ` Oleg Dolgov
2006-04-08 14:53     ` Nick S. Grechukh
2006-04-08 15:30       ` Oleg Dolgov
2006-04-09  6:25         ` Sergey
2006-04-08 14:16 ` Nick S. Grechukh
2006-04-08 14:56 ` [Comm] сДЮКХРЭ ОЕПБСЧ ЯРПНЙС ОН СЯКНБХЧ Artem Zolochevskiy
2006-04-08 14:58   ` Nick S. Grechukh
2006-04-08 15:03     ` Artem Zolochevskiy
2006-04-08 15:00   ` Artem Zolochevskiy [this message]

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='e18j6n$pvs$1@sea.gmane.org' \
    --to=az@zolochevskie.net \
    --cc=community@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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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