シェルスクリプト
https://qiita.com/hachisukansw/items/fb792bb2000b1d13b1ba #!/bin/bash $ORACLE_HOME/OPatch/opatch lsinventory$ORACLE_HOME/OPatch/opatch lsinventory | grep "applied on" # Patch 29585399 : applied on Thu Apr 18 16:21:33 JST 2019# Patch 295172…
https://gblog.hatenablog.jp/entry/2017/06/01/124439https://qiita.com/keniooi/items/289db04addd2cfcf6fdd #!/bin/bash sqlplus -S / as sysdba <<EOF > a.logset head offset tab offset lines 1000set pages 5000 col NAME_COL_PLUS_SHOW_PARAM form a50;col</eof>…
cat <<-'EOF' > a.sh#!/bin/bash A=$(crsctl stat res -t) while true; do B=$(echo "${A}") A=$(crsctl stat res -t) echo "${A}" date; diff <(echo "${B}") <(echo "${A}") sleep 30 doneEOF chmod +x a.sh cat a.sh ./a.sh
https://dev.classmethod.jp/articles/waiting-for-your-input-with-read-command/https://genzouw.com/entry/2023/02/18/084531/3300/https://qiita.com/MahoTakara/items/87c993c12fb4ddb64b85 仕様:入力ファイルから1行ずつ読み込む。空行は処理しない。…
systemctl stop chronydsystemctl status chronyd vim change_time.sh #!/bin/bash MONTH01=20210301INTERVAL=7200 while true;doMONTH01=`date --date "${MONTH01} 1 month" '+%Y%m01'`SET_TIME=`date --date "${MONTH01} -1 day" '+%Y/%m/%d 23:00:00'`dat…