摘要:
V1.11.1https://github.com/kubernetes/kubernetes/releases/tag/v1.11.1环境准备:系统:centos7.2.1511[root@master ~]# cat /etc/redhat-release CentOS Linux releas 阅读全文
摘要:
Brog 自动装箱,自动修复,水平扩展,服务发现和负载均衡,自动发布和回滚 密钥和配置管理,存储编排,批量处理执行 阅读全文
摘要:
#!/usr/bin/env python#ecoding=utf-8 f=open(r"D:\opsdev\olduser\oldused.txt","a+") newline=raw_input('input a string:')f.writelines(newline+"\n") f.clo 阅读全文
摘要:
#!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来。 @author: James zhan''' def output(s,l): if l==0: return 阅读全文
摘要:
#!/usr/bin/env python#ecoding=utf-8'''Created on 2017年11月2日 @author: James zhan''' def fun(n): if n==1 or n==0: return 1 else: return fun(n-1)*ns = in 阅读全文
摘要:
删除每行空白字符 sed -i 's/^[[:space:]]*//' user.txt 删除空白行 sed -i '/^$/d' user.txt 阅读全文
摘要:
sed 's/^[[:space:]]*//' /tmp/0131ok.txt 阅读全文
摘要:
以实际环境:维护环境172.30网段主机 Zabbix hosts export出主机信息至 /tmp/ip.txt shell筛选出ip [root@server ~]# cat /tmp/ip.txt | grep 172.30 | gawk -F">" '{print $2}' | gawk 阅读全文