What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-26 13:04:01
get length of array bash
## define it distro=("redhat" "debian" "gentoo") ## get length of $distro array len=${#distro[@]} ## Use bash for loop for (( i=0; i<$len; i++ )); do echo "${distro[$i]}" ; done Add solution -
Shell/Bash 2021-08-26 12:49:02
how to get out of git bash editor
On Windows GIT Bash Ctrl + X would do nothing and found out it works quite like vi/vim. Press i to enter inline insert mode. Type the description at the very top, press esc to exit insert mode, then type :x! (now the cursor is at the bottom) and hit en... Add solution -
Javascript 2021-08-26 12:46:02
javascript abs
Math.abs(-4)//returns 4 Math.abs(4)//returns 4 Add solution
Best helpers
Ranking is empty