Utility

Curl with perl

alias pcurl='perl -MHTTP::Tiny -e '\''$_=shift;$_="http://$_" unless /^https?:\/\//;print HTTP::Tiny->new->get($_)->{content};'\'''
pcurl http://<IP>:<PORT>/<FILE> > file

Powershell or CMD?

(dir 2>&1 *`|echo CMD);&<# rem #>echo PowerShell

Write File in Windows

[System.IO.File]::WriteAllText("<FILE>",'<CONTENT>')

Instead of using echo “<CONTENT>” > <FILE>

Last updated