一、只从文件读取
[root@rhel8 shell]# cat ping.sh
#!/bin/bash
# 判断是否有输入参数
if [ $# -eq 0 ];then
# basename:只输出路劲的最后一个名称
echo -e "
[root@rhel8 shell]# cat ping.sh
#!/bin/bash
# 判断是否有输入参数
if [ $# -eq 0 ];then
# basename:只输出路劲的最后一个名称
echo -e "