Hands-on task
Migration output from a deploy log
In the deploy log /var/log/deploy/run.log the database migration output is wrapped in the lines >>> migrations begin and <<< migrations end. Save to /root/migrations.txt only the lines inside the block — without the markers themselves and without anything before or after.
- awk
- state flag
- next
- block between markers