readarray
Read lines from stdin into an array. tldr-pages
On several platforms
Several platforms
Interactively input lines into an array
readarray array_nameIdentifyRead lines from a file and insert them in an array
readarray <path/to/file.txt array_nameIdentifyRemove trailing delimiters (newline by default)
readarray <path/to/file.txt -t array_nameIdentifyCopy at most n lines
readarray <path/to/file.txt -n n array_nameIdentifyskip the first n lines
readarray <path/to/file.txt -s n array_nameIdentifyDefine a custom delimiter
readarray <path/to/file.txt -d delimiter array_nameIdentifyDisplay help
help mapfileIdentify