Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array
#!/bin/bash str="1 2 3 4 5" array=($str) while IFS= read -r line; do exit done param=$line if [[ "${array[@]}" =~ "$param" ]]; then echo $param in ${array[@]} else echo $param not in ${array[@]} fi
run
|
edit
|
history
|
help
0
test
jhbl
Bash: Find count of a character in a line/word
Check regex
basc1
Checking set -e behavior in functions
heyy
Testing behavior of set -e with functions and exit hooks
a shell script to say good morning/afternoon/evening
1111