{"id":7918,"date":"2021-11-11T13:15:24","date_gmt":"2021-11-11T12:15:24","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7918"},"modified":"2021-11-12T11:49:30","modified_gmt":"2021-11-12T10:49:30","slug":"windows-a-powershell-tail-clone","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-a-powershell-tail-clone\/","title":{"rendered":"Windows: A powershell tail &#8220;clone&#8221;"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7918 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7918')){$('.twoclick_social_bookmarks_post_7918').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20A%20powershell%20tail%20%26%238220%3Bclone%26%238221%3B\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0AUNIX%20has%20some%20useful%20tools.%20One%20of%20it%20is%20tail.%20Often%20used%20to%20monitor%20changes%20%28appends%29%20within%20a%20file%20in%20real%20time.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-a-powershell-tail-clone\\\/\",\"post_id\":7918,\"post_title_referrer_track\":\"Windows%3A+A+powershell+tail+%26%238220%3Bclone%26%238221%3B\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>UNIX has some useful tools. One of it is tail. Often used to monitor changes (appends) within a file in real time.<br \/>\n<!--more--><br \/>\nThe powershell command let Get-Content has such a function:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Get-Content myFileToMonitor -Wait \r\n<\/pre>\n<p>with the parameter Tail only the last x lines are shown<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Get-Content myFileToMonitor -Wait -Tail 10\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, UNIX has some useful tools. One of it is tail. Often used to monitor changes (appends) within a file in real time.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[133,1645,219,20],"class_list":["post-7918","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","category-windowsscripts","tag-powershell","tag-tail","tag-win32","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7918"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7918\/revisions"}],"predecessor-version":[{"id":7919,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7918\/revisions\/7919"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}