xczxczxcz (Tα酱油路过)当前离线
中尉
$file="$(gl)\a.txt"; #加载文件 $id=1; #[数字] $r='0.0.0.0'; #替换内容 $name='ip'; #替换标识 [regex]::Replace([IO.File]::ReadAllText($file,[Text.Encoding]::Default), "(?ism)(?<=\[$id].*?$name=)(?:[^`r`n]+)",$r)|sc '.\new.log'; &cmd /c pause;复制代码
TOP