<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anmino</author_name>
  <author_url>https://blog.hatena.ne.jp/anmino/</author_url>
  <blog_title>あんみのの備忘録</blog_title>
  <blog_url>https://anmino.hatenadiary.org/</blog_url>
  <categories>
    <anon>UNIX/Linux</anon>
  </categories>
  <description>declareコマンドで配列を宣言し、/etc/passwdのuseridとusernameをセット。 for文でuseridが100以下と以上に分け、それぞれファイルに書き込む。 コマンド1 &amp;&amp; コマンド2 || コマンド3は コマンド1が真の場合コマンド2を実行し、偽の場合はコマンド3を実行する。 ${#username[*]}は配列にセットされている変数の数。 #!/usr/bin/bash declare -a username userid username=($(cut -d &quot;:&quot; -f1 /etc/passwd)) userid=($(cut -d &quot;:&quot; -f3 /etc/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanmino.hatenadiary.org%2Fentry%2F20090827%2F1251301978&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>2009-08-27 00:52:58</published>
  <title>システムユーザ/一般ユーザ別リスト作成</title>
  <type>rich</type>
  <url>https://anmino.hatenadiary.org/entry/20090827/1251301978</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
