Skip to content

Commit

Permalink
chore: Regenerate json file
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlydog committed May 7, 2024
1 parent c107f31 commit 53701a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tiPS/PowerShellTips.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
{
"CreatedDate": "2023-09-12T00:00:00",
"Title": "Get text file updates in realtime with Get-Content",
"TipText": "Get-Content provides a `-Wait` switch that can be used to get updates to a text file in realtime. This is useful for monitoring log files from the terminal, or any other text file that is updated over time.\r\n\r\nIn addition, if you want to get the last N lines of a file, you can use the `-Tail` parameter. This is useful for getting only the last few lines of a very large text file.\r\n\r\nOnce you are done monitoring the file, you can press `Ctrl+C` to stop the command.",
"Example": "Get-Content -Path $filePath -Wait -Tail 10",
"TipText": "Get-Content provides a `-Wait` switch that can be used to get updates to a text file in realtime. This is useful for monitoring log files from the terminal, or any other text file that is updated over time.\r\n\r\nIn addition, if you want to get the last N lines of a file, you can use the `-Tail` parameter. This is useful for getting only the last few lines of a very large text file, especially if it's too large for a text editor to load.\r\n\r\nOnce you are done monitoring the file, you can press `Ctrl+C` to stop the command.",
"Example": "# Show the last 10 lines of the file and display new content as it is written to the file.\r\nGet-Content -Path $filePath -Wait -Tail 10\r\n\r\n# Show the last 1000 lines of a very large file that is too big to open in a text editor.\r\nGet-Content -Path $veryLargeLogFile -Tail 1000",
"Urls": [
"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-content",
"https://4sysops.com/archives/parse-log-files-with-powershell/"
Expand Down

0 comments on commit 53701a4

Please sign in to comment.