<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BioErrorLog</author_name>
  <author_url>https://blog.hatena.ne.jp/BioErrorLog/</author_url>
  <blog_title>BioErrorLog Tech Blog</blog_title>
  <blog_url>https://www.bioerrorlog.work/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>shell</anon>
  </categories>
  <description>awkで簡単にできます: awk '!seen[$0]++' はじめに コマンドで重複行を排除して一度だけ表示する コマンド解説 実行例 おわりに 参考 はじめに コマンドで重複行を排除して一度だけ表示する方法の備忘録を残します。 The English translation of this post is here. コマンドで重複行を排除して一度だけ表示する 下記コマンドで、重複行を排除して一度だけ表示可能です: awk '!seen[$0]++' コマンド解説 awk '!seen[$0]++' $0: 現在処理している行全体 seen[$0]: &quot;現在処理している行全体&quot;をキーとする…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.bioerrorlog.work%2Fentry%2Funique-lines-in-shell&quot; title=&quot;コマンドで重複行を排除して一度だけ表示する - BioErrorLog Tech Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20250417/20250417101021.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-17 10:14:10</published>
  <title>コマンドで重複行を排除して一度だけ表示する</title>
  <type>rich</type>
  <url>https://www.bioerrorlog.work/entry/unique-lines-in-shell</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
