i would like to add a simply word in a existing file on a specific line. I already try with sed or awk or echo, cat and so on, but without expect result.
I tried with several command:
!/bin/bash
read nome
awk "BEGIN {print "$nome"}" > file.txt
File example:
word1 word2 word3 word4
word1 word2 word3 word4 word5
And i want the result:
word1 word2 word3 word4
word1 word2 word3 word4 word5 word6