Last active
January 14, 2018 02:46
-
-
Save chrisdel101/1460ba8323651f41a4d0650129d162a8 to your computer and use it in GitHub Desktop.
array-split
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
#!/usr/bin/env bash | |
arr="$@" | |
cool_strong=("${arr[@]:8:11}") | |
cute=("${arr[@]:20:4}") | |
all="I am $cool_strong and $cute" | |
echo $all | |
./arrays.bash awesome cool strong cute awesome #I am cool strong and cute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment