Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update the serial number in BIND zone files with the current unix timestamp
#!/bin/bash
sed -i -e "s/[0-9]\{10\}/$(date +%10s)/" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.