Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Shell脚本编写教程【七】——Shell test命令
Shell脚本编写教程 七 Shell test命令 目录 https blog csdn net shn111 article details 131590488 参考教程 https www runoob com linux linux
shell脚本
Linux
bash
日志清理脚本,升级版
root ip 10 172 10 35 cat usr local shell iop ps data rm sh bin bash 获取15天之前的日期 del date date Y m d d 15 days ago 获取30天之前
linux 常用
shell脚本
bash
Linux
centOS
微服务+Jenkins 简单的linux自动部署脚本
No 1 启停脚本 bin bash 加载配置 避免获取不到java home source etc profile SERVICE HOME 项目路径 SERVICE NAME 服务名称 cd SERVICE HOME SERVICE N
微服务
shell
自动部署
jenkins
shell脚本
emmc分区创建脚本
bin sh add a new primary partition Param PartNum 1 3 First cylinder Last cylinder add partition echo creat primary parti
shell脚本
shell脚本基础4——function函数、expect
文章目录 一 function函数 1 1 函数的定义使用 1 2 函数参数 1 2 1 脚本内传参 1 2 2 脚本外传参 1 3 引用局部变量 1 3 1 区分局部变量 1 3 2 全局变量在函数外 1 3 3 全局变量在函数体 1 3
shell脚本
Linux
bash
运维
自动化
Shell脚本编写教程
Shell脚本编写教程
shell脚本
Linux
bash
shell脚本二:条件语句和多路分支语句
1 条件语句 bin bash if ne 1 then echo usage 0 filename exit fi if e 1 then echo 1 not exist exit fi if d 1 then echo 1 is a
shell脚本
Linux三剑客之awk命令详解
目录 一 awk常见用法 二 案例 2 1 awk中 F的使用 2 2 awk中几个特殊的内部变量 用法 三 实战案例 一 awk常见用法 通常情况下awk所使用的命令格式如下 其中 单引号家伙是那个大括号 用于设置对于数据进行的处理动作
shell脚本
Linux
Java
运维
Shell脚本之数字大小排列(小到大)
脚本内容 bin bash read p 请输入一个数字 num1 read p 请输入一个数字 num2 read p 请输入一个数字 num3 tmp 0 如果 num1 大于 num2 就把 num1 和和 num2 的值对调 确保
shell脚本
shell
Shell脚本编写教程【一】——Shell 变量
Shell脚本编写教程 一 Shell 变量 目录 https blog csdn net shn111 article details 131590488 参考教程 https www runoob com linux linux she
shell脚本
Linux
bash
Shell脚本编写教程【二】——Shell 数组
Shell脚本编写教程 二 Shell 数组 目录 https blog csdn net shn111 article details 131590488 参考教程 https www runoob com linux linux she
shell脚本
Linux
bash
shell脚本之if多分支和case分支语句
文章目录 一 多分支if语句 二 case分支语句 三 实操 3 1 系统控制服务脚本 控制服务的启动 重启 停止 3 2 根据学生的成绩 判断优秀 良好 和不及格几个等级 3 3 删除家目录 3 4 剪刀石头布 电脑与人 3 5 case
shell脚本
Linux
运维
服务器
shell 脚本中数字判断
数字的判断 int1 eq int2 两数相等为真 int1 ne int2 两数不等为真 int1 gt int2 int1大于int2为真 int1 ge int2 int1大于等于int2为真 int1 lt int2 int1小于i
shell脚本
shell
数字的判断
Shell脚本函数应用
记录 429 场景 Shell脚本函数应用 定义函数 函数调用 函数传参 版本 CentOS Linux release 7 9 2009 1 普通函数 示例普通函数是没有入参和返回值 1 1脚本 脚本名称 b2023051701 sh 脚
L02Shell基础
shell脚本
Shell脚本函数
脚本函数传参数
运维
终端上使用脚本隔一定时间进行重复reboot和ping
bin sh 设置 so的路径 export LD LIBRARY PATH usrdata LD LIBRARY PATH export LD LIBRARY PATH LD LIBRARY PATH usrdata 设置 usrdata
shell脚本
Shell脚本定时清理Postgres数据库中历史数据
Shell脚本定时清理Postgres数据库中历史数据 在系统日常运行中 会产生大量的日志 日志表会越来越加庞大 特别是对于云服务器使用者来说 每一块的空间都是很宝贵的 所以定时清理掉无用的历史日志 就显得很有意义了 其实实现数据库的日志清
shell脚本
postgresql教程
数据库
shell
日志
shell脚本判断变量是否包含某个字符串的几种方法
方法一 利用grep查找 strA long string strB string result echo strA grep strB if result then echo 包含 else echo 不包含 fi 先打印长字符串 然后在
shell脚本
bash
shell脚本编程之循环
内容预知 1 循环的定义 2 for循环 2 1 for循环的基本用法 运用演示1 列表打印 运用演示二 分类打印 运用演示三 累加求和 2 2 for循环读取文件作为循环条件 运用演示 2 3 for循环的多线程运用 运用演示 2 4 f
shell脚本
shell
Linux
服务器
运维
[原创]脚本小技巧:awk变量传递到shell变量
简介 常用网名 猪头三 出生日期 1981 XX XX 个人网站 https www x86asm org QQ交流 643439947 编程生涯 2001年 至今 共20年 职业生涯 18年 开发语言 C C 80x86ASM PHP P
Mac OS X
shell脚本
awk
shell脚本不能激活环境变量问题完美解决
今天在Linux系统写shell脚本时发现配置好java环境变量后 明明写了source etc profile 但还是不能激活 也就是java version没有反应 非要自己手动去激活 后来发现我是用 test sh 来启动的脚本 te
Linux下常见操作
shell脚本
shell
1
2
3
»