Answers for "bash convert to array"

1

bash convert find to array

array=( $(find blah blah) )

# loop over it
for i in ${array[@]}; do
    echo $i
done
Posted by: Guest on October-31-2021
2

string to array bash

IFS='$SEP' read -r -a ARRAY <<< "$STRING"
Posted by: Guest on April-22-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language