Created
March 29, 2012 22:01
-
-
Save andersonvom/2244185 to your computer and use it in GitHub Desktop.
Bash Array
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 | |
vetor[0]="023 asdf asdf" | |
vetor[1]="123 asdf asdf" | |
vetor[2]="323 asdf asdf" | |
for i in 1 2 3 | |
do | |
if [ "${vetor[0]}" \< "${vetor[i]}" ] | |
then | |
echo OK | |
else | |
echo NOK | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment