我有以下 PowerShell 代码,它给了我一个计数输出。我想连接或删除前 11 个字符,只留下“9”或将在那里/更大的数字。有谁知道如何缩短字符串或从 PowerShell 中的返回值中减少 X 个字符?
PS C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Task> Get-Content * -erroraction silentlycontinue | findstr /R "^\[Schedule]" | Measure-Object | find "Count "
Count : 9
PS C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Task>