Created
February 11, 2012 06:28
-
-
Save tkyowa/1797287 to your computer and use it in GitHub Desktop.
シェルのヒアドキュメント記法
This file contains 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
cat <<-'EOS' > /tmp/chihayafuru | |
ちはやふる | |
かみよもきかす | |
たつたかは | |
からくれなゐに | |
みつくくるとは | |
EOS | |
# * 'EOS'とシングルクォートで囲むとヒアドキュメント内の式展開無効 | |
# * <<- の "-" は行頭のタブを無視するオプション | |
# * スペースはそのまま通るので注意 | |
# * see: http://shellscript.sunone.me/input_output.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment