[PowerShell]字符串

1. 字符串长度

$.Length

PS /root> "1234567".length
7

2. 字符串包含

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