KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
awk '/^nameserver/ && !modif { printf("nameserver 127.0.0.1\n"); modif=1 } {print}' testfile.txt It is displaying output but I want to write the output to same file. In my example testfile.txt .
Tags (comma-separated)
Save Edits
Cancel