
Linux—10—Shell编程
ztguang
出淤泥而不染,濯清涟而不妖,中通外直,不蔓不枝,香远益清,亭亭净植,可远观而不可亵玩焉。
展开
-
shell 编程例子—第9章源码
shell 编程例子—第9章源码 ++++++++++++++++++++++++++++++++++++++++++ #!/bin/bash #this is a example cd /root/txtfile/ echo "----------------" >> bac_ztg.txt date >> bac_ztg.txt cat ztg* >> bac原创 2016-03-30 09:55:22 · 397 阅读 · 0 评论 -
(OK) [android-x86-6.0-rc1] /system/etc/init.sh
(OK) [android-x86-6.0-rc1] /system/etc/init.sh原创 2016-07-16 10:05:59 · 1262 阅读 · 0 评论 -
Advanced Bash-Scripting Guide
Advanced Bash-Scripting Guide转载 2016-06-21 15:07:45 · 549 阅读 · 0 评论 -
(OK)(OK) seem-tools-auto_create_vm_android.sh
(OK)(OK) auto_create_vm_android-x86_64.sh原创 2016-06-29 17:52:02 · 472 阅读 · 0 评论 -
(OK) [android-x86-6.0-rc1] /system/xbin/quagga/sbin/seem_init.sh
(OK) [android-x86-6.0-rc1] /system/xbin/quagga/sbin/seem_init.sh原创 2016-07-16 10:03:49 · 987 阅读 · 0 评论 -
[android-x86-6.0-rc1] /system/etc/init.sh
[android-x86-6.0-rc1] /system/etc/init.sh原创 2016-07-14 21:20:30 · 2472 阅读 · 0 评论 -
(OK) Android 添加 开机启动 脚本
(OK) Android 添加 开机启动 脚本原创 2016-07-15 23:30:49 · 1325 阅读 · 0 评论 -
(OK)(OK) seem-tools-init-android-x86_64-6.0-rc1-0.sh
(OK)(OK) seem-tools-init-android-x86_64-6.0-rc1-0.sh原创 2016-06-30 15:41:19 · 705 阅读 · 0 评论 -
[android-x86-6.0-rc1] /system/xbin/log.sh
[android-x86-6.0-rc1] /system/xbin/log.sh原创 2016-07-14 21:17:52 · 478 阅读 · 0 评论 -
(OK) init_in_android-x86_64.sh
(OK) init_in_android-x86_64.sh原创 2016-07-08 09:58:00 · 480 阅读 · 0 评论 -
(OK)(OK) seem-tools-CLI-semi-auto.sh---nic1_2-hostonly-bridged
(OK)(OK) seem-tools-CLI-semi-auto.sh---nic1_2-hostonly-bridged原创 2016-06-29 22:51:31 · 693 阅读 · 0 评论 -
docker动态映射运行的container端口
docker动态映射运行的container端口 2016-01-26 docker自带了EXPOSE命令,可以通过编写dockerfile加-p参数方便的映射container内部端口,但是对于已经运行的container,如果你想对外开放一个新的端口,只能编辑dockerfile然后重新build,有点不太方便。 其实docker本身使用了iptables来做端口映射的,所以我们可以转载 2016-05-14 08:21:08 · 10225 阅读 · 1 评论 -
shell实现输入密码显示星号
shell实现输入密码显示星号 2013-09-07 shell脚本可以使用read -s来默认禁止回显输入字符,这样做一定程度上可以保证安全性。但这并不是一个好的交互,因为对于输入密码并不能知道已经输入了多少个字符。而使用*(星号)来代替输入的字符是一个很不错的想法,即保证安全又有好的交互性。 程序的实现 首先要实现不显示输入字符,这个可以使用命令stty来实现 stty cbre转载 2016-05-14 08:07:57 · 5793 阅读 · 0 评论 -
(OK) find-alter-files.sh——递归
find-alter-files.sh #!/bin/sh #注意:每次修改代码前,在/var/www/html/aaa 下面 touch time.txt #存放修改后的文件 /root/var/www/html/aaa #newerdir="/root" function scandir() { local cur_dir parent_dir workdir newe原创 2016-04-17 22:15:20 · 441 阅读 · 0 评论 -
(OK) digui-gb18030-utf8.sh——递归
digui-gb18030-utf8.sh #!/bin/sh eachd() { for chkfile in $1/* do if [[ -f "$chkfile" ]] then result=`file $chkfile |awk '{prin原创 2016-04-17 22:11:15 · 578 阅读 · 0 评论 -
(OK) digui-dir-del-M.sh——递归
digui-dir-del-M.sh #!/bin/sh eachd() { for chkfile in $1/* do if [[ -f "$chkfile" ]] then result=`file $chkfile |awk '{print $原创 2016-04-17 21:46:23 · 741 阅读 · 0 评论 -
(OK) digui-dir-indent.sh——递归
digui-dir-indent.sh #!/bin/sh #http://www.wenzizone.cn/?p=313 function scandir() { local cur_dir parent_dir workdir workdir=$1 cd ${workdir} if [ ${workdir} = "/" ] then原创 2016-04-17 21:43:54 · 394 阅读 · 0 评论 -
Linux目录递归改变文件名大小写
experiment目录递归,indent C standard style[root@localhost Desktop]# lsexperiment-2.6-new.tar.bz2digui-dir-alter-case.shexperiment[root@localhost Desktop]# ./digui-dir-alter-case.sh experimentdigui-dir-alt原创 2016-03-30 10:31:22 · 2247 阅读 · 0 评论 -
Makefile 中:= ?= += =的区别
Makefile 中:= ?= += =的区别转载 2016-10-26 22:00:49 · 367 阅读 · 0 评论