zoukankan      html  css  js  c++  java
  • plutil工具

    作用:

    • 检查元素文件语法;
    • 转换格式、支持xml binary json;
    • 插入key-value;
    • 打印内部信息;

    详细解释:

    -lint                         check the property list files for syntax errors

    -convert fmt             rewrite property list files in format

                                   fmt is one of: xml1 binary1 json

    -insert keypath -type value   insert a value into the property list before writing it out

                                   keypath is a key-value coding key path, with one extension:

                                   a numerical path component applied to an array will act on the object at that index in the array

                                   or insert it into the array if the numerical path component is the last one in the key path

                                   type is one of: bool, integer, float, date, string, data, xml, json

                                   -bool: YES if passed "YES" or "true", otherwise NO

                                   -integer: any valid 64 bit integer

                                   -float: any valid 64 bit float

                                   -string: UTF8 encoded string

                                   -date: a date in XML property list format, not supported if outputting JSON

                                   -data: a base-64 encoded string

                                   -xml: an XML property list, useful for inserting compound values

                                   -json: a JSON fragment, useful for inserting compound values

                                   value YES, NO, a number, a date, or a base-64 encoded blob of data

    -p                            print property list in a human-readable fashion

    There are some additional optional arguments that apply to the -convert, -insert, -remove, -replace, and -extract verbs:

     -s                            be silent on success

     -o path                       specify alternate file path name for result;

                                   the -o option is used with -convert, and is only

                                   useful with one file argument (last file overwrites);

                                   the path '-' means stdout

     -e extension                  specify alternate extension for converted files

     -r                            if writing JSON, output in human-readable form

     --                            specifies that all further arguments are file names

     

     

     

  • 相关阅读:
    安装mysql_cluster报错: Data::Dumper丢失
    win10 nodejs指定ionic版本安装(npm方式)
    java项目报错: org.springframework.beans.factory.BeanCreationException找不到mapper.xml文件
    java项目跑起来报错: 程序报 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 错误
    ~/.bashrc文件写错, 导致Linux全部命令丢失
    tomcat热启动没问题, 访问项目报500解决办法
    安装OpenOffice
    redhat6.4 elasticsearch1.7.3安装配置
    MySQL新建用户保存的时报错:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
    zabbix zabbix_agentd.conf详解
  • 原文地址:https://www.cnblogs.com/Yukang1989/p/4541975.html
Copyright © 2011-2022 走看看