... | 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()
from os import getenv
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as Opt
opts = Opt()
if getenv('OS') != None :
p = getenv('HOMEDIR').replace('\\', '/')
else:
p = getenv('HOME')
opts.add_argument('--user-data-dir='+p)