Skip to content

Instantly share code, notes, and snippets.

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