当前位置:网站首页>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)边栏推荐
- @Detailed differences between pathvariable and @requestparam
- Niuke Xiaobai monthly race 52 E. sum logarithms in groups (two points & inclusion and exclusion)
- 对称的二叉树【树的遍历】
- Implementation of VGA protocol based on FPGA
- Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
- 解决pod install报错:ffi is an incompatible architecture
- 10W word segmentation searches per second, the product manager raised another demand!!! (Collection)
- On the discrimination of "fake death" state of STC single chip microcomputer
- How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
- 开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启
猜你喜欢
![[SQL practice] a SQL statistics of epidemic distribution across the country](/img/ba/639a23d87094d24572a69575b565b9.png)
[SQL practice] a SQL statistics of epidemic distribution across the country

A very good JVM interview question article (74 questions and answers)

Apple CMS V10 template /mxone Pro adaptive film and television website template

VMware安装后打开就蓝屏

软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
![[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core](/img/19/1a6d43c39f2cf810ba754ea9674426.png)
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core

Introduction to the extension implementation of SAP Spartacus checkout process

JMeter's own functions are not enough? Why don't you develop one yourself

关于STC单片机“假死”状态的判别

Chain storage of stack
随机推荐
Subghz, lorawan, Nb IOT, Internet of things
C. colonne Swapping [tri + Simulation]
当我们谈论不可变基础设施时,我们在谈论什么
Value range of various datetimes in SQL Server 2008
基本Dos命令
Peripheral driver library development notes 43: GPIO simulation SPI driver
Talking about reading excel with POI
高并发大流量秒杀方案思路
Introduction to yarn (one article is enough)
tkinter窗口选择pcd文件并显示点云(open3d)
关于STC单片机“假死”状态的判别
693. 行程排序
[Shell]常用shell命令及测试判断语句总结
计算模型 FPS
骑士战胜魔王(背包&dp)
PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
New Year Fireworks code plus copy, are you sure you don't want to have a look
3428. 放苹果
JVM命令之 jstack:打印JVM中线程快照
JVM 全面深入