ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergei <serpiph@pochtamt.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Помогите с рег выражением....
Date: Fri Jan 18 08:01:59 2002
Message-ID: <20020118051152.CBE84302C41@pif.b5.mephi.ru> (raw)
In-Reply-To: <20020118001807.2b073cbe.maga@replay.ru>

Пятница 18 Январь 2002 00:18, Вы написали:

> Ну, "это же неаккуратненько" (с)  =)
>
> #!/usr/bin/perl
>
> for (qx/ls -a/) {
> chomp; rename $_, ucfirst;
> }

Хм:
1. ls -a выдаст список всех файлов в несколько колонок, причем вместе с "." и 
"..".
2. ucfirst переведет в верхний регистр только первый символ, а остальные без 
изменений.
3. Хотел сделать, чтобы было видно где что. Может, человеку нужно будет еще 
что-то вставлять.
4. А если у вас названия файлов содержат пробелы или непечатаемые символы? 
Ведь в имени могут быть все символы, кроме "\" пары-тройки других.
4. Каждый работает "в меру своей испорченности" :)))

-- 
С уважением, Епифанов Сергей.



  reply	other threads:[~2002-01-18  8:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-17 19:53 Korshunov Ilya
2002-01-17 20:25 ` Sergei
2002-01-17 20:30   ` Korshunov Ilya
2002-01-17 20:46     ` Sergei
2002-01-18  0:20       ` Sergey Degtyaryov
2002-01-18  8:01         ` Sergei [this message]
2002-01-17 20:59 ` Sergey Vlasov

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=20020118051152.CBE84302C41@pif.b5.mephi.ru \
    --to=serpiph@pochtamt.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