会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Real_Raul
博客园
首页
新随笔
联系
订阅
管理
2021年8月4日
sed在指定的行末尾添加指定的字符和删除指定的字符
摘要: [root@centos7 data]# cat func1.sh#!/bin/bashget_os() { cat /etc/os-release uname -r echo "hello world"} get_os 例1:在第3至第5行末尾添加; [root@centos7 data]# se
阅读全文
posted @ 2021-08-04 16:59 Real_Raul
阅读(965)
评论(0)
推荐(0)
2021年7月13日
second
摘要: 1、显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录ls /etc/ -a|egrep '^[^a-zA-Z\.][[:alpha:]]{1}.*2、复制/etc目录下所有以p开头,以非数字结尾的文件或目录到/tmp/mytest1目录中。cd /etc/ &&
阅读全文
posted @ 2021-07-13 11:47 Real_Raul
阅读(51)
评论(0)
推荐(0)
公告