출력 결과 값의    대/소문자를 치환하는 명령...



(기본)

[root@mail logrotate.d]# uname -a 

Linux mail.weschool.kr 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux



(소문자로 치환)
[root@mail logrotate.d]# uname -a | tr '[A-Z]' '[a-z]'
linux mail.weschool.kr 3.10.0-693.el7.x86_64 #1 smp tue aug 22 21:09:27 utc 2017 x86_64 x86_64 x86_64 gnu/linux



(대문자로 치환)

[root@mail logrotate.d]# uname -a | tr '[a-z]' '[A-Z]'

LINUX MAIL.WESCHOOL.KR 3.10.0-693.EL7.X86_64 #1 SMP TUE AUG 22 21:09:27 UTC 2017 X86_64 X86_64 X86_64 GNU/LINUX



+ Recent posts