File: config.awk

package info (click to toggle)
post-faq 0.10-19
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 320 kB
  • ctags: 51
  • sloc: perl: 626; sh: 26; makefile: 15; 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
}