1. 使用SED
cat file |sed 'y /abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
2. 使用tr
cat file |tr a-z A-Z
cat file |tr "[:lower:]" "["upper:"]"
1. 使用SED
cat file |sed 'y /abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
2. 使用tr
cat file |tr a-z A-Z
cat file |tr "[:lower:]" "["upper:"]"