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: Sat Sep 15 22:58:11 2001
Message-ID: <3BA3A4D2.3020005@lrn.ru> (raw)
In-Reply-To: <20010915214128.78f14095.ujo@zuzusoft.com>

Artem K. Jouravsky wrote:
> Здравствуйте, Sergey Sokolov <renar@inbox.ru>!
> От Sat, 15 Sep 2001 21:10:33 +0400 вы писали на тему Re: [mdk-re]
> Файллистгенератор:
> SS> 15 Сентябрь 2001 20:45, Вы написали:
<snip>> SS> Не то. Во-первых, кроме названия объекта, тут печатается куча
> SS> ненужной (мне) 
> SS> информации. Во-вторых, не смотрятся поддиректории.
> Не, не! Это не L, это единица! Только имена файлов, nothing more!
> С директориями сложнее... 
Только недавно сам решал подобную проблему :)
Программка find спасет отца русской демократии:
find . -type f -name *.mp3 -exec ls -sH1 {} >> musiclist.txt \;
генерит приблизительно следующее в файле musiclist.txt:
6.7M ./Deep Forest/Songs/01/01 - Deep Forest.mp3
5.2M ./Deep Forest/Songs/01/04 - Night Bird.mp3
5.4M ./Deep Forest/Songs/01/06 - Savana Dance.mp3
7.0M ./Deep Forest/Songs/01/08 - White Whisper.mp3
4.2M ./Deep Forest/Songs/01/03 - Hunting.mp3
Вам это нужно?

Расшифровка по параметрам:
найти только файлы (-type f) совпадающие с маской *.mp3 (-name *.mp3) в 
текущем каталоге и подкаталогах (.) и выполнить с именем файла комманду 
ls -sH1(единица) <имя файла> с выводом в файл musiclist.txt (-exec ls 
-sH1 {} >> musiclist.txt \;)

Вот собственно и все :)
-- 
Best regards,
  John Profic <profic@lrn.ru>
Written by Mozilla 0.9.3
using ASPLinux release 1.1 with ru_RU.CP1251,
system: XFree86 4.1.0; kernel 2.4.8-xfs-p2; gcc 3.0.1





  reply	other threads:[~2001-09-15 22:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-15 20:28 Sergey Sokolov
2001-09-15 20:37 ` Artem K. Jouravsky
2001-09-15 21:18   ` Sergey Sokolov
2001-09-15 21:32     ` Artem K. Jouravsky
2001-09-15 22:58       ` John Profic [this message]
2001-09-15 23:51         ` [mdk-re] Re: [mdk-re]Файллистгенератор Sergey Sokolov
2001-09-15 21:34     ` [mdk-re] Re: [mdk-re] Файллистгенератор cornet
2001-09-15 21:38       ` [mdk-re] Re: [mdk-re]Файллистгенератор cornet
2001-09-15 23:16     ` [mdk-re] Файллистгенератор Aristarh
2001-09-15 23:51       ` Sergey Sokolov
2001-09-16  0:07         ` [mdk-re] Re: [mdk-re][JT] Файллистгенератор cornet
2001-09-16 12:31           ` [mdk-re] Re: [JT] Файллистгенератор Mikhail Zabaluev
2001-09-16 17:53             ` cornet
2001-09-17  0:15               ` Alexander Bokovoy

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=3BA3A4D2.3020005@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