f1df37db699dbed7eb76d90820668b1b44e82cae
[khatus.git] / x2 / src / bash / exe / khatus_sensor_datetime.sh
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 '
This page took 0.069892 seconds and 4 git commands to generate.