Skip to content

Instantly share code, notes, and snippets.

@imchao9
Created October 31, 2017 09:30
Show Gist options
  • Save imchao9/11179412440803573e9f9142c54a3a19 to your computer and use it in GitHub Desktop.
Save imchao9/11179412440803573e9f9142c54a3a19 to your computer and use it in GitHub Desktop.
use array for loop in shell
#! /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