<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dkfj</author_name>
  <author_url>https://blog.hatena.ne.jp/dkfj/</author_url>
  <blog_title>プログラマでありたい</blog_title>
  <blog_url>https://blog.takuros.net/</blog_url>
  <categories>
    <anon>shell</anon>
  </categories>
  <description>awkには、NRとNFという組込変数があります。NRはいくつめのレコードを処理しているのか、NFは処理中のレコードにいくつのフィールドがあるのかを保持しています。これを使うと処理の幅が大幅に広がります。 hoge.txt 1 5 7 2 6 8全ての行の欄を逆順で印字する方法 % cat hoge.txt | awk '{for(i=NF; i&gt;0; i--) printf(&quot;%s &quot;,$i); printf(&quot;\n&quot;); }'実行結果 7 5 1 8 6 2</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.takuros.net%2Fentry%2F20080222%2F1203641340&quot; title=&quot;awkで逆順で表示する - プログラマでありたい&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>2008-02-22 09:49:00</published>
  <title>awkで逆順で表示する</title>
  <type>rich</type>
  <url>https://blog.takuros.net/entry/20080222/1203641340</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
