我想计算深度2中子目录的数量,但是忽略bash脚本中深度1的父目录。
例:
root_dir ---|--ignore_dir ---|--count_dir
| |--count_dir ---|--ignore_dir
| |--ignore_dir
|--ignore_dir ---|--count_dir
|--count_dir
|--count_dir
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我需要帮助创建SOAP 1.2请求.我只有这个:
样品申请:
POST /WS/PriceList.asmx HTTP/1.1
Host: gateway.systemb2b.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetProducts xmlns="http://gateway.systemb2b.com/schemas/Product" />
</soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)
样品响应:
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetProductsResponse xmlns="http://gateway.systemb2b.com/schemas/Product">
<GetProductsResult>xml</GetProductsResult>
</GetProductsResponse>
</soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)
非常感谢.
我的 Excel 电子表格中有很多数据。其中一栏保存了国家/地区的 ISO 代码。我想用国家/地区的全名替换该值。当然,互联网上有 ISO 代码和相应国家/地区名称的列表,但我想知道,对于每个 ISO 代码值,是否有比 Ctrl+H 数千次更好的方法。
先感谢您。
示例:(我想根据 D 中的值将 A 中的值替换为 E 中的值)
我正在 JavaFX 中开发应用程序,并且具有以下结构,其中包含在控制器类中创建的对象“config”,然后我从扩展原始控制器类的两个类以及其他线程访问配置。
public class Controller {
protected Config config = new Config();
private void setupConfig() {
var machineStatus = new MachineStatus();
machineStatus.setRemainingTime(25);
machineStatus.setMessage("Running");
config.setMachineStatus(machineStatus);
}
}
public class MainController extends Controller {
Thread taskThread = new Thread(new Runnable() {
@Override
public void run() {
while(true) {
var newStatus = getNewStatus(); // Returns new status containing different RemainingTime and Message value every time
config.setMachineStatus(newStatus);
Thread.sleep(10000);
}
}
});
taskThread.start();
}
public class StatusController extends Controller {
System.out.println(config.getMachineStatus().getRemainingTime()) // Always prints …
Run Code Online (Sandbox Code Playgroud)