From: yuk@iceb.vinnitsa.com To: community@altlinux.ru Subject: Re: [Comm] awk Date: Fri, 4 Jul 2003 12:17:03 +0300 (EEST) Message-ID: <Pine.LNX.4.53L.0307041216040.2972@iceb.home.int> (raw) In-Reply-To: <20030704143929.213c61df.bazhen@mail.kz> В Птн, 4 Июл 2003, Yevgeniy Bazhenov написал(а): YB> Здравствуйте! YB> YB> Просветите кто-нибудь, как пользоваться YB> переменной OFS в awk? YB> Я наивно полагал, что конструкция YB> YB> awk ' YB> BEGIN { YB> OFS="," YB> FS="\t" YB> } YB> {print} YB> ' $INPUT_FILE > $OUTPUT_FILE YB> YB> должна привести к замене разделителей полей YB> с табуляции во входном файле на запятую в выходном:/ YB> Как это сделать? А почему awk ? Не проще ли для этой задачи использовать tr или sed ? -- Yura Kalinichenko
prev parent reply other threads:[~2003-07-04 9:17 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-04 7:39 Yevgeniy Bazhenov 2003-07-04 7:58 ` Dmytro O. Redchuk 2003-07-04 8:52 ` Yevgeniy Bazhenov 2003-07-04 9:12 ` Dmytro O. Redchuk 2003-07-04 9:11 ` Slava Garelin 2003-07-04 9:17 ` yuk [this message]
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=Pine.LNX.4.53L.0307041216040.2972@iceb.home.int \ --to=yuk@iceb.vinnitsa.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