{"id":2774,"date":"2021-10-29T00:16:05","date_gmt":"2021-10-29T00:16:05","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=2774"},"modified":"2021-10-29T00:16:27","modified_gmt":"2021-10-29T00:16:27","slug":"solved-batch-file-to-delete-specific-words-in-text","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-file-to-delete-specific-words-in-text\/30334.html","title":{"rendered":"Solved Batch File To Delete Specific Words In Text"},"content":{"rendered":"<p>Example, I have a text file and the contents are:<br \/>\nDog is a pet.<br \/>\nDog has four legs.<br \/>\nDog has tail.<br \/>\nDog has two eyes.<\/p>\n<p>How do I write a batch file that will remove word &#8220;Dog&#8221; but it will not remove whole line.<br \/>\nOut put should be:<br \/>\nis a pet.<br \/>\nhas four legs.<br \/>\nhas tail.<br \/>\nhas two eyes.<\/p>\n<p>Thanks!!!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":9},"question-category":[55],"question_tags":[],"class_list":["post-2774","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/2774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=2774"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=2774"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=2774"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=2774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}