技术改变生活

博客园 首页 新随笔 联系 订阅 管理

2020年4月25日 #

摘要: for_null.sh内容: 1 #!/bin/bash 2 #for null line 3 #version 1.0 by feng 4 5 IFS=$'\n' 6 for i in `cat $1` 7 do 8 if [ ${#i} -eq 0 ];then 9 echo "the line 阅读全文
posted @ 2020-04-25 23:54 小阿峰 阅读(594) 评论(0) 推荐(0) 编辑

摘要: vim while_create_user.sh 1 #!/usr/bin/bash 2 3 #while create user 4 5 #v1.0 by xfeng 6 7 while read line 8 9 do 10 11 if [ ${#line} -eq 0 ];then #变量的字 阅读全文
posted @ 2020-04-25 22:10 小阿峰 阅读(352) 评论(0) 推荐(0) 编辑

摘要: 1、创建用户 useradd01.sh 1 #!/bin/bash 2 3 ############################### 4 5 #useradd # 6 7 #v1.0 by userf 2019.08.0 # 8 9 ############################## 阅读全文
posted @ 2020-04-25 22:09 小阿峰 阅读(128) 评论(0) 推荐(0) 编辑

摘要: cat yum_if.sh 1 #!/bin/bash 2 3 4 #if for many branches yum 5 #version 1 by feng 6 7 yum_server=192.168.0.117 8 Os_version=$(cat /etc/redhat-release | 阅读全文
posted @ 2020-04-25 14:43 小阿峰 阅读(176) 评论(0) 推荐(0) 编辑