9、将/etc/issue文件中的内容转换为大写后保存至/tmp/issue.out文件中
作者:互联网
9、将/etc/issue文件中的内容转换为大写后保存至/tmp/issue.out文件中。
关键命令:cat /etc/issue|tr a-z A-Z >/tmp/issue.out
范例:
[15:09:35 root@CentOS7 ~]#cat /etc/issue
\S
Kernel \r on an \m
[15:17:21 root@CentOS7 ~]#cat /etc/issue | tr a-z A-Z
\S
KERNEL \R ON AN \M
[15:17:57 root@CentOS7 ~]#cat /etc/issue | tr a-z A-Z > /tmp/issue.out
[15:18:19 root@CentOS7 ~]#cat /tmp/issue.out
\S
KERNEL \R ON AN \M
标签:tmp,文件,cat,CentOS7,etc,issue,out 来源: https://www.cnblogs.com/biaoming534/p/16110889.html