I have a utility that outputs the software expiration date into a text file called expiration
. The file has one line and it is below:
node_software_expiration_date Sat Jul 6 23:59:59 2025
I'd like to replace the text in the file to read:
node_software_expiration_date 20250706
I'm using sed to replace the current text. I can't edit the utility. Open to other options.
I'm running this in cron:
./export_expiration && sed -e 's/Software Expiration/node_software_expiration_date /' > expiration