<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Shinya_131</author_name>
  <author_url>https://blog.hatena.ne.jp/Shinya_131/</author_url>
  <blog_title>機略戦記</blog_title>
  <blog_url>https://shinya131-note.hatenablog.jp/</blog_url>
  <categories>
    <anon>shell</anon>
  </categories>
  <description>あるコマンドの実行結果として得られたすべての行に対して別の処理を行いたい。 例えばfind .の結果に対して繰り返し同じ処理を適用したい。 結論 for line in `find .` ; do ; echo $line ; done 解説 find .の結果が変数$lineに格納される。 echo $lineがfind .の結果すべてに対して実行される。 使用例 カレントディレクトリ以下すべてのcsvファイルに対して何がしかの処理を行う。（ここではecho） for line in `find . | grep .csv` ; do ; echo $line ; done</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinya131-note.hatenablog.jp%2Fentry%2F2015%2F08%2F29%2F160956&quot; title=&quot;例えば`find .`の結果に対して繰り返し同じ処理を適用したい - 機略戦記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-08-29 16:09:56</published>
  <title>例えば`find .`の結果に対して繰り返し同じ処理を適用したい</title>
  <type>rich</type>
  <url>https://shinya131-note.hatenablog.jp/entry/2015/08/29/160956</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
