Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #sort Numbers in Pure BASH
- arr=()
- for num in 8 22 9 100 4 35; do
- arr[num]=
- done
- echo "${!arr[@]}"
- # Output: 4 8 9 22 35 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement