qshinoの日記

Powershell関係と徒然なこと

powershell 演算子

# PowerShell演算子

## 比較演算子

 

文字列、数字

-eq

-ne

-gt

-ge

-lt

-le

 

## 論理演算子

 

-and

-or

-xor

-not

!

 

## bit演算子

 

-band

-bor

-bxor

 -bnot

-shl

-shr

 

## 算術演算子

 

+-*/%

[math]::pow(x,y)

 

## インクリメント、デクリメント

 

記述は変数の後ろ

++,--

 

## クラス識別

 

-is

-isnot

 

## 文字列関連

 

-contains

-replace <from>, <to>

-in <array>

-[c][not]like

-[c][not]match

-join

 

# 演算子一覧

http://stknohg.hatenablog.jp/entry/2015/12/03/000000

 

# さらっとした演算子一覧

http://capm-network.com/?tag=PowerShell演算子