I work with several text files that use epoch, I would like a bash script that will scan a specific file for epoch and output another text document with it as standard time.
Asked
Active
Viewed 983 times
-1
-
Mention details like: A sample of the epoch data you have. A sample of expected output. Shell version. Operating System. And most important, what do you mean by standard time? – askmish Nov 06 '12 at 19:39
1 Answers
1
In Linux-BASH:
HUMAN_READABLE=$(echo $myTIMESTAMP | gawk '{print strftime("%c", $0)}')
echo $HUMAN_READABLE

askmish
- 6,464
- 23
- 42