From: "Eugene Ostapets" <eostapets@gmail.com> To: "ALT Linux Community" <community@lists.altlinux.org> Subject: Re: [Comm] Помогите с bash Date: Wed, 7 Mar 2007 11:58:43 +0200 Message-ID: <e12fd2db0703070158s3569e916he62949434eac3d93@mail.gmail.com> (raw) In-Reply-To: <70988a130703070142u158f7049q9ad2e0d8fa3ff94@mail.gmail.com> 2007/3/7, Maxim Ivanov <maxipios gmail.com>: > Прошу помощи. > > Есть текстовый файл, содержащий множество > строчек вида > Нужен скрипт на bash который из этого файла сделает > другой файл вида А при чем тут баш? > > Фамилия;Имя;username@domains sed -r 's|(.*):(.*):(.*):(.*):(.*) (.*):(.*):(.*)|\6;\5;\1@domains|g' filename > > В программировании я слаб, подскажите примерно хотя бы. Если домен разный - нужно еще немного усложнить правила и читать доку по sed :) -- С уважением, Евгений Остапец uin: 23747217 jid: eugene_ostapets@jabber.ru
next prev parent reply other threads:[~2007-03-07 9:58 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-07 9:42 Maxim Ivanov 2007-03-07 9:58 ` Eugene Ostapets [this message] 2007-03-07 10:05 ` Pavel Usischev 2007-03-28 17:47 ` Grigory Fateyev 2007-03-28 19:14 ` Maxim Ivanov
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=e12fd2db0703070158s3569e916he62949434eac3d93@mail.gmail.com \ --to=eostapets@gmail.com \ --cc=community@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 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