File: texttest.awk

package info (click to toggle)
mawk 1.3.3-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,204 kB
  • ctags: 1,530
  • sloc: ansic: 13,023; yacc: 994; awk: 629; sh: 330; makefile: 164
file content (11 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
# Ben Myers <0003571400@mcimail.com>

/^#include/ {
# got #include, see if it has at least one quote. We don't want #include <>        
        z = gsub(/"/, "", $2)
        while ((z > 0) && (getline x <$2 > 0)) 
#        while (getline x <$2 > 0) 
                print x
        next
}
{ print }