Shift X2 status from legacy to archived
[khatus.git] / khatus_sensor_datetime.sh
... / ...
CommitLineData
1#! /bin/sh
2
3set -e
4
5date +'%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 '
This page took 0.027632 seconds and 5 git commands to generate.