![]() If there is not a solution, I will continue using "wintail.exe" but it will be frustrating for me to have not a unix-equivalent command in powershell. ![]() I hope that I have been clear in the explanation of my problem. I desire a command which gives me the possibility to "stay in a listening state" on the log file and see every line changed in real-time (as I said many time before).įrom different forums, I see that the "-wait" parameter is used but, as I said many time before, it does not work as I want because the output is refreshed only if the "filename" file is saved.Īs I said many time before, in unix, using " tail -f filename" (a very simple command) it is possible to have what I want, that is a tail which is refreshed automatically (without my action) every time "filename" changes Find Juicy Stiff in the File System ls -PATH C:PATHTODIRECTORY -Recurse. Get-Content "filename" -tail 1 until my fingers become red. Grep has a -v switch that shows all lines that do not match a pattern. ![]() ![]() If I would see every change in the "filename" file, I should type every second This might be dodging the question, but you could just use the sed and grep -statements within powershell by importing them from an existing git installation. The Windows PowerShell is used as a scripting language or command line tool that manages administrative tasks and is also used to build and deploy solutions. There is no direct equivalent to greps -w switch. If I type Get-Content "filename" -tail 1, I see the last modified line in the "filename". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |