Hands-on task
sed: backup log dates to ISO
The backup script writes dates to /root/backup.log in the US format MM/DD/YYYY (month first), for example backup ok 10/23/2026 03:00. Convert all dates to YYYY-MM-DD, leaving the rest of each line as is, and write the result to /root/backup_iso.log.
- sed -E
- capture groups
- backreferences
- {n} counter
- date format