{"id":41052,"date":"2021-02-25T22:13:15","date_gmt":"2021-02-25T22:13:15","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=41052"},"modified":"2021-02-25T22:13:17","modified_gmt":"2021-02-25T22:13:17","slug":"linux-tr-command","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/linux-tr-command\/","title":{"rendered":"Linux: tr command"},"content":{"rendered":"\n<h2>Self-tutoring about Linux: the tutor mentions its neat tr command.<\/h2>\n<p>\n<em>tr target replacement<\/em> is one form of tr, with input being piped to it or redirected to it. For instance,<\/p>\n<code>\ntr \"8\" \"9\" &lt; infile.txt\n<\/code>\n<p>will <em>display<\/em> the file infile.txt with every 8 replaced by a 9. However, infile.txt isn&#8217;t changed.<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/tr-command-examples-in-linux\/\">tecmint.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about Linux: the tutor mentions its neat tr command. tr target replacement is one form of tr, with input being piped to it or redirected to it. For instance, tr &#8220;8&#8221; &#8220;9&#8221; &lt; infile.txt will display the file infile.txt &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/linux-tr-command\/\"> <span class=\"screen-reader-text\">Linux: tr command<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[637],"tags":[],"class_list":["post-41052","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=41052"}],"version-history":[{"count":1,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41052\/revisions"}],"predecessor-version":[{"id":41053,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41052\/revisions\/41053"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=41052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=41052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=41052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}