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
Comments
-
- hi, do you remember https://www.youtube.com/watch?v=9cgdkpxTCs8&lc=UgxEwh5YeGzrxQRmVP94AaABAg.AD_uso9aJkGADanTKP2v75
- i tried multiple times to post my code in yt comments, but it was always deleted. and why did you not answer to my questions if you have seen my code before deletion? anyway, here is my code on pastebin: https://pastebin.com/DiSTVmXs
Add Comment
Please, Sign In to add comment
Advertisement