{"id":39583,"date":"2004-04-29T08:50:00","date_gmt":"2004-04-29T08:50:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/04\/29\/using-the-echo-command-to-remember-what-you-were-doing\/"},"modified":"2004-04-29T08:50:00","modified_gmt":"2004-04-29T08:50:00","slug":"using-the-echo-command-to-remember-what-you-were-doing","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040429-00\/?p=39583","title":{"rendered":"Using the echo command to remember what you were doing."},"content":{"rendered":"<p>Sometimes you&#8217;ll start typing a complex command line and  then realize that you can&#8217;t execute it now.  Perhaps you&#8217;re in the wrong directory  or you forgot to map the drive.  It would be a shame to hit ESC and lose that command line.\n  What I do is edit the line to insert the word &#8220;echo&#8221; in front,  then hit Enter.  (Note: This doesn&#8217;t work if you have command  line redirection.)<\/p>\n<p>  This prints the command to the screen, where it can be cut\/pasted  later.  Even more, it enters the line into the   command history, so a few uparrows will bring it back.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you&#8217;ll start typing a complex command line and then realize that you can&#8217;t execute it now. Perhaps you&#8217;re in the wrong directory or you forgot to map the drive. It would be a shame to hit ESC and lose that command line. What I do is edit the line to insert the word &#8220;echo&#8221; [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-39583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Sometimes you&#8217;ll start typing a complex command line and then realize that you can&#8217;t execute it now. Perhaps you&#8217;re in the wrong directory or you forgot to map the drive. It would be a shame to hit ESC and lose that command line. What I do is edit the line to insert the word &#8220;echo&#8221; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/39583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=39583"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/39583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=39583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=39583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=39583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}