{"id":637,"date":"2007-03-28T08:47:00","date_gmt":"2007-03-28T14:47:00","guid":{"rendered":"http:\/\/www.cls-solutions.com\/blog\/?p=637"},"modified":"2023-02-09T22:59:14","modified_gmt":"2023-02-10T03:59:14","slug":"find-one-liners","status":"publish","type":"post","link":"http:\/\/www.cls-solutions.com\/blog\/find-one-liners\/","title":{"rendered":"FIND &#8211; one liners"},"content":{"rendered":"<p>find . -name &#8220;PLW_TCPIN*&#8221; -exec grep -l &#8220;$1&#8221; {} \\;  (finds file &#038; string in file)<br \/>find . -name &#8220;*core*&#8221; | xargs ls -l   (finds cores and their sizes)<br \/>find . -size +100000 -print (find files over 1 gig) <\/p>\n<p>To Rename all .jpeg to .jpg:<br \/>\nfor file in *.jpeg; do mv &#8220;$file&#8221; &#8220;${file%.jpeg}.jpg&#8221;; done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>find . -name &#8220;PLW_TCPIN*&#8221; -exec grep -l &#8220;$1&#8221; {} \\; (finds file &#038; string in file)find . -name &#8220;*core*&#8221; | xargs ls -l (finds cores and their sizes)find . -size +100000 -print (find files over 1 gig) To Rename all .jpeg to .jpg: for file in *.jpeg; do mv &#8220;$file&#8221; &#8220;${file%.jpeg}.jpg&#8221;; done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-637","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/posts\/637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/comments?post=637"}],"version-history":[{"count":1,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/posts\/637\/revisions"}],"predecessor-version":[{"id":6955,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/posts\/637\/revisions\/6955"}],"wp:attachment":[{"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/media?parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/categories?post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cls-solutions.com\/blog\/wp-json\/wp\/v2\/tags?post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}