Created
October 31, 2017 09:30
-
-
Save imchao9/11179412440803573e9f9142c54a3a19 to your computer and use it in GitHub Desktop.
use array for loop in shell
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
#! /bin/bash | |
jobs=(12 13 14 15 16 17 18 19 20) | |
for job in ${jobs[@]} | |
do | |
echo "$job"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment