awk -vDate=`date -d'now-2 hours' +[%d/%b/%Y:%H:%M:%S` '$4 > Date {print Date, $0}' access_log
Created
October 25, 2018 07:21
-
-
Save tanish-kr/ae82ba9647eafb453eff03a38f62030d to your computer and use it in GitHub Desktop.
logを日時でフィルタリングする
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment