From: Sergey Degtyaryov <maga@replay.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] Помогите с рег выражением.... Date: Fri Jan 18 00:20:01 2002 Message-ID: <20020118001807.2b073cbe.maga@replay.ru> (raw) In-Reply-To: <20020117175542.341C8302A6D@pif.b5.mephi.ru> Доброго времени суток, Sergei. Thu, 17 Jan 2002 20:55:40 +0300 Вы сказали буквально следующее: S> #!/usr/bin/perl S> S> open (LIST,"ls -1A|"); S> S> while ($file=<LIST>) S> { S> chomp $file; S> next if ($file=~/^\.\.?$/); S> $file1="\L\u$file"; S> print "$file -> $file1\n";# можно выкинуть S> rename $file,$file1; S> } S> close (LIST); Ну, "это же неаккуратненько" (с) =) #!/usr/bin/perl for (qx/ls -a/) { chomp; rename $_, ucfirst; } --- Ciao, maga, maga@anykey.spb.ru --
next prev parent reply other threads:[~2002-01-18 0:20 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 [this message] 2002-01-18 8:01 ` Sergei 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=20020118001807.2b073cbe.maga@replay.ru \ --to=maga@replay.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