摘要:
转自:https://www.jianshu.com/p/093d712c777d 1. 扫描主机端口状态 #!/bin/bash HOST=$1 PORT="22 80 8080 3306" for PORT in $PORT; do if echo &>/dev/null > /dev/tcp/ 阅读全文
摘要:
[oracle@pxc2 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Wed Sep 8 23:38:28 2021 Copyright (c) 1982, 2013, Oracle. All rights r 阅读全文
摘要:
[root@pxc3 ~]# vi function8.sh#!/bin/bashtext="global variable"tj=91850use_local_var_fun(){ local text="local variable" echo "In function use_local_va 阅读全文
摘要:
#!/bin/bashshow_week(){ for day in Monday Tuesday Wednesday Thursday Friday Saturday Sunday do echo "$day " done} show_number(){ for (( i = 1; i <= 7; 阅读全文