add a string to a file in bash code example Example: bash add text to file echo "hello world" >> my_file.txt