<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Bockle</author_name>
  <author_url>https://blog.hatena.ne.jp/Bockle/</author_url>
  <blog_title>明太子ソースに鮭フレークを添えて</blog_title>
  <blog_url>https://bockle.hateblo.jp/</blog_url>
  <categories>
    <anon>csh</anon>
  </categories>
  <description>テキストファイル内の文字列を変換する時のメモ。 sedコマンド使って-eで何をするか指示する。 &quot;&gt;&quot;で出力指定する時にファイル名を別のものにしないとデータが消えてしまう。 以下は連番でファイルを読んで、ファイル内のWWWWをwwwwに変換する場合。 #! /bin/csh -f #上記は~/.cshrcを読まずに実行する set a = 1 while ($a &lt;= 5) sed -e 's/WWWW/wwww/g' test${a}.txt &gt; test${a}_1.txt @ a ++ end 他のシェルのが良いのでは、と常に思ってるけど。 最初に参考にした先輩のスクリプトがcshでその…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbockle.hateblo.jp%2Fentry%2F2014%2F12%2F17%2F014939&quot; title=&quot;複数のテキストファイル内の文字列を一気に変換 - 明太子ソースに鮭フレークを添えて&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>2014-12-17 01:49:39</published>
  <title>複数のテキストファイル内の文字列を一気に変換</title>
  <type>rich</type>
  <url>https://bockle.hateblo.jp/entry/2014/12/17/014939</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
