<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ni66ling</author_name>
  <author_url>https://blog.hatena.ne.jp/ni66ling/</author_url>
  <blog_title>どこでも見れるメモ帳</blog_title>
  <blog_url>https://ni66ling.hatenadiary.jp/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>高速化</anon>
  </categories>
  <description>はじめに 「.NETやopenMPのparallel for的な処理をbashでやりたい」という状況が生じたのでメモ． 方法を簡単に言うと，xargsにseqでループカウンタを渡して，各処理をパラレルに処理する． ※xargsによる並列処理については以前に書いた*1． やりかた $ seq [カウンタ開始値] [カウンタ終了値] | xargs -P[並列数] -Ix bash -c '[具体的な処理]' seqでループカウンタを生成して*2，それをxargsに渡して処理する． ただし，各処理におけるループカウンタ値はxで参照する*3．これは，C#（.NET）における次のようなコードと対応する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fni66ling.hatenadiary.jp%2Fentry%2F20140505%2F1399279567&quot; title=&quot;.NETのParallel.For的な処理をbashで - どこでも見れるメモ帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/n/ni66ling/20160611/20160611160134.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-05 17:46:07</published>
  <title>.NETのParallel.For的な処理をbashで</title>
  <type>rich</type>
  <url>https://ni66ling.hatenadiary.jp/entry/20140505/1399279567</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
