update-date.sh (100B)
1 #!/bin/bash 2 3 cp "$1" "$1~" 4 5 cat "$1~" | sed "s/^date = .*/date = $(date -Iseconds)/" > $1 6 7 rm "$1~"