From: Sergey Bolshakov <s.bolshakov@belcaf.com> To: community@altlinux.ru Subject: Re: [Comm] sed замена слова Date: 11 Oct 2002 14:04:39 +0300 Message-ID: <m3fzvddyns.fsf@pc313.belcaf.minsk.by> (raw) In-Reply-To: <3DA6AACA.7070505@rmts.donpac.ru> >>>>> "john" == john <john@rmts.donpac.ru> writes: > Здравствуйте! Как заменть в файле одно слово на другое, но при этом > вывести не измененную строку, а весь файл? [me@pc313 me]$ cat <<EOF|sed 's|\(^.\+\)\{0\}Pupkin\(.\+$\)\{0\}|\1Popkin\2|' > Petrov > Vasisualy Pupkin-Lohankin > Vasechkin > EOF Petrov Vasisualy Popkin-Lohankin Vasechkin [me@pc313 me]$ -- Трули ерз, Сергей. "[Open Source] programming is like sex, one mistake and you have to support it for the rest of your life." --- M. Sinz, CBM Inc.
next prev parent reply other threads:[~2002-10-11 11:04 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-11 10:41 Прокопьев Евгений 2002-10-11 10:45 ` Igor Homyakov 2002-10-11 10:53 ` Korshunov Ilya 2002-10-11 11:04 ` Sergey Bolshakov [this message] 2002-10-11 11:32 ` Прокопьев Евгений 2002-10-11 11:38 ` Прокопьев Евгений
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=m3fzvddyns.fsf@pc313.belcaf.minsk.by \ --to=s.bolshakov@belcaf.com \ --cc=community@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