Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | set -e | |
4 | ||
5 | date +'%s %a %b %d %H:%M:%S' \ | |
6 | | awk ' | |
7 | BEGIN { | |
8 | OFS = msg_fs ? msg_fs : "|" | |
9 | Kfs = key_fs ? key_fs : ":" | |
10 | } | |
11 | ||
12 | { | |
13 | epoch = $1 | |
14 | datetime = $0 | |
15 | sub("^" epoch " +", "", datetime) | |
16 | print("epoch" , epoch) | |
17 | print("datetime", datetime) | |
18 | } | |
19 | ' |