The Instagram of Code
Feel left out of the Instagram craze? Everyone else is sharing pictures of their food and all you have is code. Not to worry InstaCode has you covered:
Feel left out of the Instagram craze? Everyone else is sharing pictures of their food and all you have is code. Not to worry InstaCode has you covered:
I've seen examples of how to accomplish this in Windows. The syntax is slightly different on MacOS. I also find the most straightforward way to do this is a little bit scary for those unfamiliar with Linux partitions. This should work on any LVM based *nix VM; I just happened
echo testing 1 2 3
This is XenSoft, a brand new site by John Westlund that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!
Very easy and usually accomplished with a loop: $ array=(red green blue) $ for I in ${array[@]}; do echo $I; done red green blue But we can do better!: $ printf '%s\n' "${array[@]}" or: $ ( IFS=$'\n'; echo "${array[*]}" ) Note the switch to "${array[*]}" from "${array[@]}" (the "quoting" is important!