Move all awk functions to separate files
This commit is contained in:
10
awk/update_site_conf.awk
Normal file
10
awk/update_site_conf.awk
Normal file
@@ -0,0 +1,10 @@
|
||||
BEGIN { done = 0 }
|
||||
/^title[[:space:]]*=/ {
|
||||
print "title = \"" new_title "\""
|
||||
done = 1
|
||||
next
|
||||
}
|
||||
{ print }
|
||||
END {
|
||||
if (!done) print "title = \"" new_title "\""
|
||||
}
|
||||
Reference in New Issue
Block a user