This isn't really programming or scripting but I didn't see a more relevent place in the forums to ask.
I need to convert the first column of a file from unix epoch time to standard time.
First I tried this:
However I'm told that won't work because date(1) can't take an entire column of text. I was told to try something like this:
But that's not working either. Can anybody give me some pointers?
I need to convert the first column of a file from unix epoch time to standard time.
First I tried this:
Code:
date -r `cat access | awk '{print $1}'`
However I'm told that won't work because date(1) can't take an entire column of text. I was told to try something like this:
Code:
eval `awk '{ print date -r "$1" }' access`
But that's not working either. Can anybody give me some pointers?