{"id":81,"date":"2008-06-06T17:52:57","date_gmt":"2008-06-06T09:52:57","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=81"},"modified":"2008-06-06T17:52:57","modified_gmt":"2008-06-06T09:52:57","slug":"used-another-for-do-loop","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/used-another-for-do-loop\/","title":{"rendered":"Used Another &#8216;For&#8230; DO&#8217; Loop"},"content":{"rendered":"<p>The last post, was used to <a title=\"for..loop\" href=\"http:\/\/www.sysadmindayph.com\/blog\/looping-through-a-list-of-arguments-bourne\/\">chmod a list of home directory<\/a>.<\/p>\n<p>I used another application for that &#8216;for..do&#8217; loop again&#8230; it&#8217;s climbing my favorite script command list.. \ud83d\ude42 second only to &#8216;while&#8230;do&#8217;.. \ud83d\ude42<\/p>\n<p>for X in `ls -last | grep 2006 | awk &#8216;{print $9}&#8217;`<br \/>\ndo<br \/>\nrm -rf $x<br \/>\ndone<\/p>\n<p>bye bye 2006 directories!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last post, was used to chmod a list of home directory. I used another application for that &#8216;for..do&#8217; loop again&#8230; it&#8217;s climbing my favorite script command list.. \ud83d\ude42 second only to &#8216;while&#8230;do&#8217;.. \ud83d\ude42 for &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[30,31],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-commands","category-scripting","tag-for-loop","tag-while-loop"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}