File: config.awk

package info (click to toggle)
post-faq 0.10-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 172 kB
  • ctags: 26
  • sloc: perl: 313; makefile: 43; sh: 26; awk: 7
file content (12 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
# post_faq.awk
# Input file contains lines of the form
#    name <whitespace> value
# Comment lines start with "#".
# Outputs a SED script to change #name# to value
BEGIN	{
    name = ++i
    val = ++i
    }
/^[^#]/ {
    printf "s%%#%s#%%%s%%g\n",$name,$val
}