reverse the order of a files lines
perl -e ‘print reverse <>’ < $FILE
perl -e ‘print reverse <>’ < $FILE
NET: 1.2.3.16/28 the nsd.conf: zone: name: “3.2.1.in-addr.arpa” zonefile: master/3.2.1.reverse zone: name: “16/28.3.2.1.in-addr.arpa” zonefile: master/16_28.3.2.1.reverse the 3.2.1.reverse: $ORIGIN 3.2.1.in-addr.arpa. ; default zone domain $TTL 86400 ; default time to live @ IN SOA ns.domain.com. admin.domain.com. ( 2016010203 ; serial number 28800 ; Refresh 7200 ; Retry 864000 ; Expire 86400 ; Min TTL ) 16/28 NS […]
use the rev command.