Created
March 9, 2020 18:02
-
-
Save MateuszNad/c1955f11f4d8b1d25e761795c3fde506 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PowerShell 7 - && | |
ping 8.8.8.8 && Write-Output "Host found" | |
# Example 2 | |
New-Item -Path (Join-Path $pwd -ChildPath 'file.txt') -Value "test" && Get-Content -Path(Join-Path $pwd -ChildPath 'file.txt') | |
# PowerShell 7 - || | |
ping powershell.io || Write-Output "Host not found" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment