运维网's Archiver
论坛
›
Shell/Powershell
› shell脚本 把一个文件的内容全部转换为大写
排第四偶家
发表于 2018-8-25 08:46:02
shell脚本 把一个文件的内容全部转换为大写
#!/bin/bash # 把一个文件的内容全部转换为大写.
BIG=65
if [ -z "$1" ];then# 检查命令行参数,如果$1长度为0,则为真
echo "Usage: `basename $0` filename"
exit $BIG
fi
tr a-z A-Z
页:
[1]
查看完整版本:
shell脚本 把一个文件的内容全部转换为大写