modify pri.* with sed

Discussion in 'General' started by trexen, Mar 16, 2011.

  1. trexen

    trexen Member

    Hi all.

    im trying to sed the pri.* and modify the serial to tha todays date, but got problem.

    Im trying to build a hot backup server from the master box, that sync everything once a 10min and update DB, and other filer whit the correct server information.
    Almost done got some minor problems =)

    i whant to modify the serial:

    $TTL 86400
    @ IN SOA (
    2010120503 ; serial, todays date + todays serial #
    28800 ; refresh, seconds
    7200 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds

    i use the search and replace in sed, but i cant get it to work whit %G%m%d01 todays date.

    Maybe someone can help me whit that plz?

    best regards

Share This Page