Applescript:如何正确编写命令'do shell script“echo | iconv”'?

时间:2018-03-19 18:39:26

标签: applescript

我想在applescript中执行shell命令'iconv',如下所示:

do shell script "echo -ne '\\x00\\x20' | iconv -f utf-16be"

但它返回时出错:

error "\riconv: (stdin):1:4: incomplete character or shift sequence"

如何正确执行命令?

1 个答案:

答案 0 :(得分:0)

var credentials = SdkContext.AzureCredentialsFactory.FromServicePrincipal(clientId, clientScret,tenantId, AzureEnvironment.AzureGlobalCloud);

NetworkManagementClient networkManagementClient = new NetworkManagementClient(credentials) {SubscriptionId = subscriptionId};

var result= networkManagementClient.CheckDnsNameAvailabilityWithHttpMessagesAsync("location", "DomainLabelName").Result;