#Linux #Bash Array -> zeilenweise in Datei -> Array echo -e "a\nb\nc" >lolo.txt ...

@dewomser@social.tchncs.de

#Linux #Bash

Array -> zeilenweise in Datei -> Array

echo -e "a\nb\nc" >lolo.txt
readarray -d "\n" x <<< $(< lolo.txt)
echo ${x[@]}

Eine Möglichkeit von vielen. Aber diese gefällt mir gerade an besten.