I\'m trying to add a line of text to the middle of a text file in a bash script. Specifically I\'m trying add a nameserver to my /etc/resolv.conf file. As it stands, resol
awk '/^nameserver/ && !modif { printf("INSERT\n"); modif=1 } {print}'