Created
April 20, 2013 20:02
-
-
Save tgck/5427200 to your computer and use it in GitHub Desktop.
ブレース展開に変数を使う(実行例). eval を使えば解決!
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/bash | |
# ブレース展開に変数を使う(実行例) | |
# | |
$ target=10 | |
$ | |
$ echo {1..$target} | |
{1..10} | |
$ | |
$ eval echo {1..$target} | |
1 2 3 4 5 6 7 8 9 10 | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment