How to set date time using a file content
I have a file called foo with a date string in it - and nothing else in the file
I want to send this file content to date -s command so I can modify using a cron job.
I tried several ways to pipe the file contents to date command but did not work. Any tips/suggestions will be appreciated.