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