From: Slava Semushin <php-coder@ngs.ru> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] raidstop Date: Mon, 21 Aug 2006 17:45:49 +0700 Message-ID: <20060821104549.GB3532@semushin.plesk.ru> (raw) In-Reply-To: <44E98928.9080309@gmail.com> --- Alexey Borovskoy 2006-08-21 23:21:28 +1300 +++ Slava Semushin 2006-08-21 17:42:32 +0700 AB> for mddev in $(sed -ne 's/^\(md[^[:space:]]*\).*/\1/p' /proc/mdstat); do AB> action "Turning off RAID for $mddev:" $raidstop "/dev/$mddev" AB> done md* т.е. все. В это регулярном выражении говорится, что после md могут идти любые символы, кроме пробельных. Как только встретится пробел, то выражение выполнится. Кстати, из-за того что используется звяздока, а не плюс просто строка "md" тоже подойдет. AB> С sed я не очень дружу. Я тоже :] -- + Slava Semushin | php-coder @ ngs.ru + ALT Linux Team | php-coder @ altlinux.ru + Expand QA Team | vsemushin @ swsoft.com
next prev parent reply other threads:[~2006-08-21 10:45 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-08-21 10:21 Alexey Borovskoy 2006-08-21 10:45 ` Slava Semushin [this message] 2006-08-21 10:54 ` Alexey Borovskoy 2006-08-21 11:14 ` Slava Semushin 2006-08-28 16:48 ` Aleksey Avdeev
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=20060821104549.GB3532@semushin.plesk.ru \ --to=php-coder@ngs.ru \ --cc=sisyphus@lists.altlinux.org \ /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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git