Prev / Next

2006-02-11 / シェルスクリプトを走らせているあいだに書きかえる方法

http://tabesugi.net/memo/cur/cur.html#091536

$ mv running.sh running.sh.old
$ cp running.sh.old running.sh
$ vi running.sh



mv しても sh の握っている i node は変わらないので,
こういうことができるらしい.

$ touch foo.txt
$ ls -i
25125952 foo.txt
$ mv foo.txt bar.txt
$ ls -i
25125952 bar.txt


comments powered by Disqus