Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, 7 February 2014

DNS: Command to delete a line containg specific from all *.db files in server


If you want to delete line containing the string "ns1.<domain_name>.com" from all *.db extention in the server.

Change directory by,
# cd  /var/named/
Run the command below,
# sed -i '/ns1.<domain_name>.com./d' *.db
Note: The above commamd will delete the line specified by the string "ns1.<domain_name>.com "  from all *.db files in the server .

No comments:

Post a Comment