... | ForEach-Object { $target = $_.FullName; & icacls $target /restore acl /t /c
}
& "icacls ${target} /restore acl /t /c"
$d = 'eclipse'; get-childitem -path $d -attributes directory | foreach-object { $target = $_.FullName; & echo icacls $target /restore acl /t /c }
echo
уберите и $d
сделайте = 'D:\Project'
StringBuffer processOutput =
...
System.err.println("OUTPUT:" + processOutput.toString());
System.err.println("ERROR :" + processError.toString());
String sample = "First Second Third fourth fifth";
expression = "([A-Z])?([a-z]+)(\\s+)?";
Pattern pattern = Pattern.compile(expression);
Matcher matcher = pattern.matcher(sample);
if (matcher.find()) {
while (matcher.find()) {
MatchResult matchResult = matcher.toMatchResult();
if (matchResult.group(1) == null) {
System.err.println(matchResult.group().toUpperCase());
} else {
System.err.println(matchResult.group().toLowerCase());
}
}
}
second
third
FOURTH
FIFTH
u -> u.group(1) == null ? u.group().toUpperCase() : u.group().toLowerCase()
- взял ваш код - поправил- объяснил, что поправил - отдал назад - что я делаю не так ?
немного удручает как быстро "помогите разобраться" превращается в "сделайте за меня"