当前位置:网站首页>Crudini profile editing tool
Crudini profile editing tool
2022-07-07 06:19:00 【Hua Weiyun】
Crudini yes Pádraig Brady use Python Developed 、 Used to correct ini Tools for editing configuration files .
crud yes 4 Acronyms of words , namely create、read、update and delete, Chinese translated into “ Additions and deletions ”. This is the most common form of data 4 Class operation method .
install
# centosyum install -y crudiniGrammar format
crudini --set [OPTION]... config_file section [param] [value] crudini --get [OPTION]... config_file [section] [param] crudini --del [OPTION]... config_file section [param] [list value] crudini --merge [OPTION]... config_file [section]Common parameters :
| --get | Get the section or key value in the configuration file |
| --set | set key value |
| --merge | Merge profile |
| --format=FMT | by --get Use , Select the output format . The format is sh,ini,lines |
| --inplace | Lock and write file , There are fewer restrictions than the default replacement |
| --list | by --set and --del, Update a list ( aggregate ) Value |
| --list-sep=STR | Use custom characters instead of the default comma |
| --output=FILE | Write output to file .’-“ Indicates standard output ” |
| --verbose | Indicate on the error output whether changes have been made |
Example
Get a key value
# obtain nova.conf The configuration file TEST section abc Value of key crudini --get nova.conf TEST abcGet a value that is not in the section
crudini --get nova.conf '' abcGet the key of a section
crudini --get nova.conf DEFAULTAdd or update a value that is not in the section
crudini --get nova.conf '' abc 456Add or update a key value
# Set up cinder.conf file DEFAULT section auth_strategy Key value is keystonecrudini --set /etc/cinder/cinder.conf DEFAULT auth_strategy keystoneUpdate an existing key value ( If the variable does not exist, it will return “Parameter not found:”):
crudini --set --existing /etc/cinder/cinder.conf DEFAULT auth_strategy keystoneDelete a key
# Delete nova.conf The configuration file DEFAULT section abc key crudini --del nova.conf DEFAULT abcDelete a section
# Delete nova.conf The configuration file TEST section crudini --del nova.conf TESTMerge profile
# take test1.ini Merge into test.inicrudini --merge test.ini < test1.ini# The output can be determined by shell Parsed section eval $(crudini --get --format=sh config_file section)# from shell Variable update ini file echo name="$name" | crudini --merge config_file section# Use standards UNIX Text processing compares two ini file diff <(crudini --get --format=lines file1.ini|sort) \ <(crudini --get --format=lines file2.ini|sort)边栏推荐
- SubGHz, LoRaWAN, NB-IoT, 物联网
- 一段程序让你明白什么静态内部类,局部内部类,匿名内部类
- ST表预处理时的数组证明
- 「解析」FocalLoss 解决数据不平衡问题
- Open the blue screen after VMware installation
- PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
- 3531. 哈夫曼树
- 基于FPGA的VGA协议实现
- cf:C. Column Swapping【排序 + 模擬】
- The solution of a simple algebraic problem
猜你喜欢

开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启

SubGHz, LoRaWAN, NB-IoT, 物联网
![[FPGA] EEPROM based on I2C](/img/28/f4f2efda4b5feb973c9cf07d9d908f.jpg)
[FPGA] EEPROM based on I2C

Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)

DC-7靶机

Chain storage of stack

go-microservice-simple(2) go-Probuffer

Jstat pour la commande JVM: voir les statistiques JVM

JVM命令之- jmap:导出内存映像文件&内存使用情况

laravel 使用腾讯云 COS5全教程
随机推荐
Jinfo of JVM command: view and modify JVM configuration parameters in real time
Talking about reading excel with POI
Bypass open_ basedir
C. colonne Swapping [tri + Simulation]
"Parse" focalloss to solve the problem of data imbalance
Deep clustering: joint optimization of depth representation learning and clustering
@Detailed differences between pathvariable and @requestparam
Cloud acceleration helps you effectively solve attack problems!
K8s running Oracle
直击2022ECDC萤石云开发者大会:携手千百行业加速智能升级
360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
Redis(一)——初识Redis
Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
那些自损八百的甲方要求
[SOC FPGA] peripheral PIO button lights up
Check Point:企业部署零信任网络(ZTNA)的核心要素
Understand the deserialization principle of fastjson for generics
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
693. 行程排序
Jstat pour la commande JVM: voir les statistiques JVM