asterisk 검색할때
“\* “이문자를 쓰면됨.
$rc_file = get-Content -path D:\log2.txt$rc_length = $rc_file.Lengthfor ($i =0 ; $i -lt $rc_length; $i++){if ($rc_file[$i] -match "\*\*") {$message+= $rc_file[$i] +"`n"}}set-Content -path D:\SRC\BuildTools\Rlog.txt $message
댓글 없음:
댓글 쓰기