I have to update a paramater (dateMemLimit) present in a file, with a date (YYYYMMDD) equal to 5 days before the sysdate. The parameter will be in the following format.
dateMemLimit = 20091201
Please note the blank spaces present between 'dateMemLimit' &'=' and between '=' & '20091201'. I have to update this parameter everyday by invoking a script in cron. I managed to get the date value (which is equal to 5 days before the sysdate), but I am not sure how to replace the existing date value with the new one, that too without disturbing the blank spaces present in-between. Please help me to handle this, using 'sed'
Moreover, its not necessarily '<tab><spaces><tab>'. It can take any sequence. I mean it can also be in the form of <space><space><tab>. As I am receiving this file from a different server everyday, I dont have control over it. Can you help me to handle this