From: "Dmytro O. Redchuk" <dor@ldc.net> To: community@altlinux.ru Subject: Re: [Comm] Re: информация о документе Date: Wed, 19 Jan 2005 09:27:19 +0200 Message-ID: <20050119072719.GA4291@ldc.net> (raw) In-Reply-To: <41ED87A6.20304@users.sf.net> On Wed, Jan 19, 2005 at 01:03:18AM +0300, Alexey Rusakov wrote: > > Aleksey E Birukov wrote: > > >>>>- посчитать частоту встречаемости слова в процентах? > >>>> > >>>> > >>>Относительно слов? Кажется, это было одним из эталонных заданий > >>>на pleac.sf.net, подберите для любимого языка. > >>> > >>> > >что-то не видно, продолжаю поиск... > > > > > >>Керниган, Пайк "Среда программирования UNIX" > >> > >> > >может есть в электронном виде? (парсинг google ничего не дал) > > > > > Я что-то не пойму, вы прикалываетесь или я недооцениваю сложность задачи? > > $((`grep -c слово файл` * 100.0 / `wc -w <файл`)) 8-) Класно. Можно даже $[`grep -cE 'слово1|слово2' файл` * 100.0 / `wc -w <файл`], можно много файлов... Только у меня bash ругается на десятичную точку. Ман пока не читал %) > > -- > Alexey "Ktirf" Rusakov > -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk
next prev parent reply other threads:[~2005-01-19 7:27 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-18 11:28 [Comm] " Aleksey 2005-01-18 11:33 ` [Comm] " Michael Shigorin 2005-01-18 11:38 ` Max A Mazin 2005-01-18 12:36 ` Aleksey E Birukov 2005-01-18 22:03 ` Alexey Rusakov 2005-01-19 7:27 ` Dmytro O. Redchuk [this message] 2005-01-19 7:36 ` Alexey Rusakov 2005-01-19 7:49 ` Michael Shigorin 2005-01-19 7:58 ` Dmytro O. Redchuk 2005-01-19 10:10 ` Вячеслав Диконов 2005-01-19 10:19 ` Aleksey E Birukov
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=20050119072719.GA4291@ldc.net \ --to=dor@ldc.net \ --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