test.sh
#!/bin/bash while read line do echo $line | tr '[a-z]' '[A-Z]' done
输出
dddddd
DDDDDD
sssss
SSSSS
cdcdcdc
CDCDCDC
ssssssssssss
SSSSSSSSSSSS
test.sh
#!/bin/bash while read line do echo $line | tr '[a-z]' '[A-Z]' done
输出
dddddd
DDDDDD
sssss
SSSSS
cdcdcdc
CDCDCDC
ssssssssssss
SSSSSSSSSSSS
转载于:https://www.cnblogs.com/sea-stream/p/10086067.html