Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $ awk
  2. '$0 ~ /^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-2][0-9]:[0-5][0-9]:[0-5][0-9]/
  3. {
  4. if ($1" "$2 >= "2014-04-07 23:00") p=1;
  5. if ($1" "$2 >= "2014-04-08 02:00") p=0;
  6. }
  7. p { print $0 }' log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement