Browse Source

Introduced root/template.sh script, to convert a zone template into something sed friendly

testing
Alejandro 18 years ago
parent
commit
ec72e29190
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      root/template.sh

+ 3
- 0
root/template.sh

@ -0,0 +1,3 @@
#!/bin/sh
cat "${0%/*}/$1.in" | tr '\n' '|' | sed -e 's/|*$//' -e 's/|/\\n/g' -e 's/&/\\&/g' -e 's/$/\\n\n/'

Loading…
Cancel
Save