{"id":31,"date":"2008-07-21T23:43:11","date_gmt":"2008-07-21T16:43:11","guid":{"rendered":"http:\/\/www.icez.net\/blog\/?p=31"},"modified":"2009-02-09T13:26:51","modified_gmt":"2009-02-09T06:26:51","slug":"%e0%b8%84%e0%b9%89%e0%b8%99%e0%b8%ab%e0%b8%b2-%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b9%81%e0%b8%81%e0%b9%89%e0%b9%84%e0%b8%82%e0%b9%81%e0%b8%9f%e0%b9%89%e0%b8%a1%e0%b8%9a%e0%b8%99-linux-%e0%b9%81%e0%b8%9a","status":"publish","type":"post","link":"https:\/\/www.icez.net\/blog\/31\/%e0%b8%84%e0%b9%89%e0%b8%99%e0%b8%ab%e0%b8%b2-%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b9%81%e0%b8%81%e0%b9%89%e0%b9%84%e0%b8%82%e0%b9%81%e0%b8%9f%e0%b9%89%e0%b8%a1%e0%b8%9a%e0%b8%99-linux-%e0%b9%81%e0%b8%9a","title":{"rendered":"0026 | \u0e04\u0e49\u0e19\u0e2b\u0e32 \u0e41\u0e25\u0e30\u0e41\u0e01\u0e49\u0e44\u0e02\u0e41\u0e1f\u0e49\u0e21\u0e1a\u0e19 linux \u0e41\u0e1a\u0e1a\u0e42\u0e04\u0e15\u0e23\u0e07\u0e48\u0e32\u0e22"},"content":{"rendered":"<p>\u0e40\u0e2d\u0e32\u0e21\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49 \u0e40\u0e1e\u0e34\u0e48\u0e07\u0e41\u0e01\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e44\u0e1b\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e19\u0e36\u0e07 (\u0e21\u0e35\u0e41\u0e27\u0e27\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e2d\u0e35\u0e01\u0e40\u0e23\u0e47\u0e27\u0e46 \u0e19\u0e35\u0e49)<\/p>\n<p>\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e25\u0e22 \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e04\u0e49\u0e19\u0e2b\u0e32 (\u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e1e\u0e35\u0e48\u0e27\u0e38\u0e18 \u0e1c\u0e48\u0e32\u0e19\u0e1e\u0e35\u0e48\u0e42\u0e14\u0e21 thaicybergames \u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a)<\/p>\n<blockquote>\n<pre lang=\"bash\">find \/path\/ -type f 2>\/dev\/null | xargs -i grep -l \"search\" {}<\/pre>\n<\/blockquote>\n<p>\u0e41\u0e25\u0e49\u0e27\u0e01\u0e47&#8230; \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 replace<\/p>\n<blockquote>\n<pre lang=\"bash\">perl -pi -w -e 's\/search\/replace\/g;' filename<\/pre>\n<\/blockquote>\n<p>\u0e17\u0e35\u0e19\u0e35\u0e49\u0e01\u0e47&#8230; \u0e40\u0e2d\u0e32\u0e21\u0e32\u0e23\u0e27\u0e21\u0e23\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19 \u0e43\u0e0a\u0e49\u0e41\u0e04\u0e48\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e31\u0e19\u0e40\u0e14\u0e35\u0e22\u0e27\u0e08\u0e1a<\/p>\n<blockquote>\n<pre lang=\"bash\">find \/path\/ -type f 2>\/dev\/null | xargs -i grep -l \"search\" {} | xargs perl -pi -w -e 's\/search\/replace\/g;'<\/pre>\n<\/blockquote>\n<p>\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07: <a href=\"http:\/\/www.liamdelahunty.com\/tips\/linux_search_and_replace_multiple_files.php\" target=\"_blank\">Linux &#8211; Search and replace over multiple files<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e2d\u0e32\u0e21\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49 \u0e40\u0e1e\u0e34\u0e48\u0e07\u0e41\u0e01\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e44\u0e1b\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e19\u0e36\u0e07 (\u0e21\u0e35\u0e41\u0e27\u0e27\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e2d\u0e35\u0e01\u0e40\u0e23\u0e47\u0e27\u0e46 \u0e19\u0e35\u0e49) \u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e25\u0e22 \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e04\u0e49\u0e19\u0e2b\u0e32 (\u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e1e\u0e35\u0e48\u0e27\u0e38\u0e18 \u0e1c\u0e48\u0e32\u0e19\u0e1e\u0e35\u0e48\u0e42\u0e14\u0e21 thaicybergames \u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a) find \/path\/ -type f 2>\/dev\/null | xargs -i grep -l &#8220;search&#8221; {} \u0e41\u0e25\u0e49\u0e27\u0e01\u0e47&#8230; \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 replace perl -pi -w -e &#8216;s\/search\/replace\/g;&#8217; filename \u0e17\u0e35\u0e19\u0e35\u0e49\u0e01\u0e47&#8230; \u0e40\u0e2d\u0e32\u0e21\u0e32\u0e23\u0e27\u0e21\u0e23\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19 \u0e43\u0e0a\u0e49\u0e41\u0e04\u0e48\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e31\u0e19\u0e40\u0e14\u0e35\u0e22\u0e27\u0e08\u0e1a find \/path\/ -type f 2>\/dev\/null | xargs -i grep -l &#8220;search&#8221; {} | xargs perl -pi -w -e &#8216;s\/search\/replace\/g;&#8217; \u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07: Linux [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[52,5905,51],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-linux","tag-find","tag-linux","tag-replace"],"_links":{"self":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}