Last active
July 15, 2018 08:00
-
-
Save kitsuyui/56caec13fd00f6304be0fab7ba6b277a to your computer and use it in GitHub Desktop.
Tips: 実行中のシェルスクリプトを書きかえるときには ref: https://qiita.com/kitsuyui/items/d0048eeaa50293a92a60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ run.sh & | |
$ vim run.sh | |
(30 秒以内に foo を bar に変えて保存する) | |
bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ run.sh & | |
$ cp run.sh run.sh.tmp | |
$ mv run.sh.tmp run.sh | |
$ vim run.sh | |
(30 秒以内に foo を bar に変えて保存する) | |
foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cp run.sh{,.tmp} | |
$ mv run.sh{.tmp,} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sleep 30 | |
echo foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment