I am writing a bash script to look for a file if it doesn't exist then create it and append this to it:
Host localhost
ForwardAgent yes
So "line then new line 'tab' then text"
I think its a sensitive format.
I know you can do this:
cat temp.txt >> data.txt
But it seems weird since its two lines. Is there a way to append that in this format:
echo "hello" >> greetings.txt