Bash добавьте текст в файл

echo "hello world" >> my_file.txt
Crazy Caterpillar