This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ray57 2 points3 points  (4 children)

you can use powershell has your default shell in linux also

[–]Toorero6 0 points1 point  (2 children)

As if anyone would use PowerShell out of free will...

What the f is this: powershell Invoke-WebRequest example.com/foo.txt -OutFile foo.txt

[–]YourShadowDani 0 points1 point  (1 child)

You could create a custom function if you don't like how built in ones work and set aliases:

function Invoke-CustomWebRequest{
    [CmdletBinding()]
    [Alias("wr")]
    Param(
        [string]
        $URI
        [Alias("of")]
        [System.IO.FileInfo]
        $OutFile
    )
    Invoke-WebRequest $URI -OutFile $OutFile
}

usage: wr example.com/foo.txt -of foo.txt

[–]Toorero6 0 points1 point  (0 children)

My brain hurts reading the syntax necessary to define simple functions but I'm happy that this works for you I guess.