kunfoo

Logo

Ich bin's, Kai die Katze!

View My GitHub Profile

Bash

Arrays

create an array in variable FOO

FOO=(foo bar baz)

access element 1 of FOO

${FOO[1]}

give us all elements of FOO

${FOO[@]}

give us the number of elements FOO contains

${#FOO[@]}

misc

use vi-keybindings in bash

set -o vi