【文件属性】:
文件名称:string.bash:用Bash编写的字符串处理程序
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-08 14:52:02
Shell
细绳
用Bash编写的字符串处理程序。
使用它
source path/to/string/source.bash
awk -F : ' {print $5} ' /etc/passwd |
string_title
可用功能
string_camelcase_underscore
string_lower
小写的字符串。
传递字符串作为参数:
string_lower " Some STRING " # some string
使用管道:
echo " Some STRING " | string_lower # some string
string_upper
大写的字符串。
传递字符串作为参数:
string_lower " Some string " # SOME STRING
使用管道:
echo " Some string " | strin
【文件预览】:
string.bash-master
----bcsm.conf(37B)
----src()
--------title.bash(174B)
--------dash()
--------escape.bash(551B)
--------underscore()
--------separator()
--------replace.bash(760B)
--------repeat.bash(285B)
--------upper.bash(172B)
--------lower.bash(172B)
--------replace()
--------camelcase()
----.travis.yml(207B)
----README.md(4KB)
----Makefile(20B)
----tests()
--------escape.bats(1KB)
--------title.bats(432B)
--------camelcase_separator.bats(916B)
--------dash_camelcase.bats(345B)
--------underscore_camelcase.bats(369B)
--------lower.bats(435B)
--------upper.bats(435B)
--------repeat.bats(688B)
--------camelcase_dash.bats(391B)
--------separator_camelcase.bats(874B)
--------replace_all.bats(505B)
--------camelcase_underscore.bats(415B)
--------replace.bats(788B)
----source.bash(111B)