Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- list=(apple pear carrot cherry)
- for var in "${list[@]}"
- do
- for var2 in "${list[@]}"
- do
- echo "${var}-${var2}"
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement