Powershell File retrieval
2 TopicsExamine the tail of multiple files using Get-Content
I am trying to examine the tail of all files in a folder that start with SMRT here's my script Get-ChildItem SMRT.* | ForEach-Object { @' {0} ----------- {1} '@ -f $_.Name, (Get-Content -Tail 5 $_.FullName -Raw) } The above script runs without errors but doesn't display any information Please adviseSolved3.9KViews0likes2Comments