摘要: [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)
摘要: 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)