in reply to Epoch to specific output
Using bash you say? If gnu tools are available, the gnu date utility can perform said task:
$ date +%Y%m%d%H%M -u -d @1388679108(Prints the UTC stamp for given epoch time.)
In Section
Seekers of Perl Wisdom