{"id":41012,"date":"2021-02-13T15:59:31","date_gmt":"2021-02-13T15:59:31","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=41012"},"modified":"2021-02-13T15:59:32","modified_gmt":"2021-02-13T15:59:32","slug":"windows-command-line-pipe-example","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/windows-command-line-pipe-example\/","title":{"rendered":"Windows Command line: pipe example"},"content":{"rendered":"\n<h2>Self-tutoring about computer science: the tutor mentions a key element of command line thinking.<\/h2>\n<p>\nAt the command line (Windows or Li|U|nix), a pipe is often shown as | and sends the first command&#8217;s output as input to the next command.<\/p>\n<p>Let&#8217;s imagine, for instance, at the Windows command prompt, you&#8217;ve a long file and want to find the string &#8220;hello&#8221; in it. At the command line you could type<\/p>\n<p>type longfile.txt | find \/N &#8220;hello&#8221;<\/p>\n<p>\nThe <em>type<\/em> command will output the file&#8217;s contents to the pipe; <em>find \/N<\/em> will receive them from the pipe as input, then display, with line numbers, those lines that contain &#8220;hello&#8221;.<\/p>\n<p><a href=\"https:\/\/ss64.com\/nt\/syntax-redirection.html\">ss64.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 computer science: the tutor mentions a key element of command line thinking. At the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/windows-command-line-pipe-example\/\"> <span class=\"screen-reader-text\">Windows Command line: pipe example<\/span> Read more \u2192<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2959],"tags":[],"class_list":["post-41012","post","type-post","status-publish","format-standard","hentry","category-command-prompt"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41012","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=41012"}],"version-history":[{"count":5,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41012\/revisions"}],"predecessor-version":[{"id":41017,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41012\/revisions\/41017"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=41012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=41012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=41012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}