Windows‎ > ‎

Powershell


wget
wget http://localhost:8080/ -UseBasicParsing
wget http://blog.stackexchange.com/ -OutFile out.html
wget(new-object System.Net.WebClient).DownloadString("https://www.google.com")  (old)


tail
Get-Content -Path "C:\scripts\test.txt" -Wait

grep 
https://antjanus.com/blog/web-development-tutorials/how-to-grep-in-powershell/
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/select-string?view=powershell-3.0

cat post.md | Select-String -Pattern "^\w*:"

Select-String -Path *.ts -Pattern "@select"

List with sort
get-childitem -filter "*.xls" | sort LastWriteTime -Descending |select name



Comments