Agregar a un archivo desde el terminal
echo "text to append" >> filename
# for multiple lines
echo -e "line1\nline2\nline3" >> filename
Genius
echo "text to append" >> filename
# for multiple lines
echo -e "line1\nline2\nline3" >> filename