<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rdera</author_name>
  <author_url>https://blog.hatena.ne.jp/rdera/</author_url>
  <blog_title>rderaログ</blog_title>
  <blog_url>https://rdera.hatenadiary.org/</blog_url>
  <categories>
    <anon>shell</anon>
    <anon>zsh</anon>
  </categories>
  <description>背景 ファイルをrmコマンドで消して、後日、そのファイルが必要になったりする。 どこかに移動してくれるコマンドがあったら嬉しい。 それ、mvコマンドでできるよ。 でも、移動先を毎回指定するのは面倒だよね。 じゃあ、zshの勉強の機会に関数でも作ってみたら〜。 準備 関数dlを置く。 ~/.zfunc/dl 1 function dl () { 2 if [ $# -eq 0 ] 3 then 4 echo &quot;Usage!!!&quot; 5 return 1 6 fi 7 8 [ -d ~/.Trash ] || mkdir ~/.Trash 9 10 for file in $* 11 do 12 i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frdera.hatenadiary.org%2Fentry%2F20090110%2F1231562931&quot; title=&quot;rmコマンド的な関数を書いてみた - rderaログ&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-01-10 13:48:51</published>
  <title>rmコマンド的な関数を書いてみた</title>
  <type>rich</type>
  <url>https://rdera.hatenadiary.org/entry/20090110/1231562931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
