LoginSignup
0
0

More than 3 years have passed since last update.

catの内容をpipeで繋いだ結果自分自身を更新する

Last updated at Posted at 2019-02-22

たまにしかやらないのでほんとに忘れる

sedとか使わないで catしてpipeで繋いでゴニョっとして
redirectで自分自身を更新ってことを年に一回くらいやりたくなって、前までtmp fileとか書いてrenameとかやってたんだけど

あ、よく考えたら これでよかったんや!

$ cat file | do_something | tee file

ダメ絶対

$ cat file | do_something > file
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0