Answers for "bash convert file 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
0

how to put the contents of a file into an array in bash

IFS=$'\n' read -d '' -r -a lines < /path/to/file
Posted by: Guest on November-02-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language