Q:

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

IFS=$'\n' read -d '' -r -a lines < /path/to/file
0

New to Communities?

Join the community