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