[PowerShell]字符串

1. 字符串长度

$.Length

PS /root> "1234567".length
7

2. 字符串包含

if( -not ($storage.Name -match "Local*|NFS"))
posted @ 2021-08-31 11:14  LeoShi2020  阅读(51)  评论(0)    收藏  举报