ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: John Profic <profic@lrn.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] Обработка текстовых файлов
Date: Sun Jul 29 14:47:00 2001
Message-ID: <3B63E362.5090101@lrn.ru> (raw)
In-Reply-To: <20010729134804.6b531afb.renar@inbox.ru>

Sergey Sokolov wrote:

> On Sun, 29 Jul 2001 12:23:37 +0400
> Sergey Sokolov <renar@inbox.ru> wrote:
>>Добрый день!
>>Где можно почитать, каким образом реализовать следующее: нужно периодически осматривать 

>>папку с пришедшей почтой, находить новые файлы и копировать их содержание 

>>(верезая строки служебной информации) в отдельный файл, дописывая к уже существующим?
>>Смысл - реализовать фильтр, который штатно есть в the Bat, и к которому я привык. 

>>Slypheed позволяет максимум раскидать сообщения по папкам, а вот писать их в архив не умеет.
> Вот такая конструкция не работает, т. к. сообщается что "missing argument for -exec":
> find -path /home/user/Mail/Junior -ctime -1 -exec cat {} >> /home/user/junior.txt

> Junior - папка, где slypheed раскладывает сообщения из рассылки.
> Где здесь ошибка?

find lib2 -name *.inc -exec echo {} \; работает - обратите внимание на 
\; это обязательно :) и пробел перед ним, сам долго мучался, пока 
человек с #unix подсказал...

> Такой вот вариант 
> find -path /home/user/Mail/Junior -ctime -1 | cat {} >> /home/user/junior.txt
> создаёт опять же пустой файл.
> И чем можно вырезать заголовки?

sed-ом наверное
-- 
Best regards,
  John Profic <profic@lrn.ru>
Written by
  Mozilla 0.9.2: Mailer on XFree86 4.1.0
using
  ASPLinux release 1.1 RC3; kernel 2.4.6 (gcc version 3.0)





  parent reply	other threads:[~2001-07-29 14:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-29 12:06 Sergey Sokolov
2001-07-29 13:32 ` Sergey Sokolov
2001-07-29 14:18   ` Vyt
2001-07-29 15:20     ` Sergey Sokolov
2001-07-29 14:47   ` John Profic [this message]
2001-07-31 11:22   ` Serge Skorokhodov

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=3B63E362.5090101@lrn.ru \
    --to=profic@lrn.ru \
    --cc=mandrake-russian@altlinux.ru \
    /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