<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rkr0314</author_name>
  <author_url>https://blog.hatena.ne.jp/rkr0314/</author_url>
  <blog_title>ダメ元エンジニアのお勉強おメモ</blog_title>
  <blog_url>https://rasp.hateblo.jp/</blog_url>
  <categories>
    <anon>Shell Script</anon>
  </categories>
  <description>概要 ~/.profile 内で環境変数が export されていなければ追記、されていれば値を変更する。 src grep -q &quot;^export HOGE=&quot; ~/.profile &amp;&amp; \ sed -i &quot;s/^export HOGE.*/export HOGE=\&quot;value\&quot;/&quot; ~/.profile || \ echo &quot;export HOGE=\&quot;value\&quot;&quot; &gt;&gt; ~/.profile おわり。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frasp.hateblo.jp%2Fentry%2F2021%2F04%2F15%2F174235&quot; title=&quot;【Shell 小ネタ】~/.profile 内の export を UPSERT する - ダメ元エンジニアのお勉強おメモ&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>2021-04-15 17:42:35</published>
  <title>【Shell 小ネタ】~/.profile 内の export を UPSERT する</title>
  <type>rich</type>
  <url>https://rasp.hateblo.jp/entry/2021/04/15/174235</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
