Your suggestion works well with a direct input for time. However, I was unable to substitute time with the $x variable.
I was able to get it to work though with the following code:
echo $x|perl -MPOSIX -e 'print strftime("%m%d%H%M", gmtime <stdin>)'
Thank you everyone for your help!
In reply to Re^2: Epoch to specific output
by Anonymous Monk
in thread Epoch to specific output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |