bibi92
asked on
get string on several files contains [
Hello,
$path = "c:\Logs"
$Searchstring = 'Return Code' -match '^Return Code[0'
$Logs = Get-ChildItem -path $path -recurse -include *.log
parsing "^Return Code[0" - Unterminated [] set.
At line:1 char:1
+ $Searchstring = 'Return Code' -match '^Return Code[0'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException
How to resolve ?
Thank you
$path = "c:\Logs"
$Searchstring = 'Return Code' -match '^Return Code[0'
$Logs = Get-ChildItem -path $path -recurse -include *.log
parsing "^Return Code[0" - Unterminated [] set.
At line:1 char:1
+ $Searchstring = 'Return Code' -match '^Return Code[0'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException
How to resolve ?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.