{"id":1565,"date":"2017-07-20T12:44:44","date_gmt":"2017-07-20T19:44:44","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1565"},"modified":"2017-07-20T12:44:44","modified_gmt":"2017-07-20T19:44:44","slug":"awk-and-cases","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1565","title":{"rendered":"Awk and cases"},"content":{"rendered":"<p>Good stuff here.  I always like to pick up these little things along the way.<\/p>\n<p>If you want to change the case of a string using awk:<br \/>\nLower case:<\/p>\n<blockquote><p>$ echo myuppercasestring | awk &#8216;{print tolower($1)}&#8217;<\/p><\/blockquote>\n<p>Upper case:<\/p>\n<blockquote><p>$ echo mylowercasestring | awk &#8216;{print toupper($1)}&#8217;<\/p><\/blockquote>\n<p>I used something like this to create little of commands to rename a bunch of upper case file names to lower case file names:<\/p>\n<blockquote><p>$ ls -c1  | awk &#8216;{print &#8220;mv &#8221; $1 &#8221; &#8221; tolower($1)}&#8217;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Good stuff here. I always like to pick up these little things along the way. If you want to change the case of a string using awk: Lower case: $ echo myuppercasestring | awk &#8216;{print tolower($1)}&#8217; Upper case: $ echo mylowercasestring | awk &#8216;{print toupper($1)}&#8217; I used something like this to create little of commands [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1565","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1565"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1565\/revisions"}],"predecessor-version":[{"id":1566,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1565\/revisions\/1566"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}