From: Vyt <vyt@vzljot.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] Обработка текстовых файлов Date: Sun Jul 29 14:18:11 2001 Message-ID: <20010729143625.4a8e08fc.vyt@vzljot.ru> (raw) In-Reply-To: <20010729134804.6b531afb.renar@inbox.ru> On Sun, 29 Jul 2001 13:48:04 +0400 Sergey Sokolov <renar@inbox.ru> 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 раскладывает сообщения из рассылки. > > Где здесь ошибка? Нужно указать, что ищете (-name "mask"), и желательно экранировать команду после -exec символами \. Например, find -name * -path /home/user/Mail/Junior -ctime -1 -exec \cat {} >> /home/user/junior.txt \; > > Такой вот вариант > find -path /home/user/Mail/Junior -ctime -1 | cat {} >> /home/user/junior.txt > создаёт опять же пустой файл. > > И чем можно вырезать заголовки? > > С уважением? > Сергей > > _______________________________________________ > Mandrake-russian mailing list > Mandrake-russian@altlinux.ru > http://altlinux.ru/mailman/listinfo/mandrake-russian > -- Regards, Vyt mailto:vyt@vzljot.ru
next prev parent reply other threads:[~2001-07-29 14:18 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 [this message] 2001-07-29 15:20 ` Sergey Sokolov 2001-07-29 14:47 ` [mdk-re] " John Profic 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=20010729143625.4a8e08fc.vyt@vzljot.ru \ --to=vyt@vzljot.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