sans_souciの日記

無憂茶房

bash

sqlite3/時間絞り込み

sqlite3 で日時で範囲を絞り込むには 文字列を、epoch に変換し(これも文字列)、さらにcast( 対象 as integer ) にする。

vmstat/ps/bash on centos 7.7

vmstat と ps の結果を紐づけ On CentOS v7.7 下準備 /file/ _get_ps.sh /file/ _get_vmstat.shy /file/ mystart.sh /file/ mystop.sh /file/ mymakecsv.sh /file/ mysqlite3.sh /directory/ ./results.d /directory/ ./sql.d/ /file/ ./sql.d/mycreatetable…

sample source bash/chpasswd

chpasswd/bash サンプル/仕掛中 素/ myfinish.txt 192.168.0.81,beforepwd01,afterpwd01 192.168.0.82,beforepwd02,afterpwd02 実行 cat myfinish.txt | awk -F',' \ '{printf \ "echo \x22$(date +%%FT%%T) The password of %s is being changed...\x22 ; \…