File: file.awk

package info (click to toggle)
gtksourceview5 5.18.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,780 kB
  • sloc: ansic: 71,161; xml: 1,493; javascript: 866; perl: 216; sh: 144; java: 49; php: 48; yacc: 45; ruby: 38; ml: 36; python: 33; sql: 30; makefile: 23; cobol: 20; objc: 19; lisp: 19; fortran: 14; awk: 9; cpp: 8
file content (21 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/awk -f
# This is a comment line.

# Special patterns:
BEGIN
END

# Field variables:
xxx$0xxx
xx$NFxxx

# String and numeric contansts:
string = "Hello, World!"
number = 42

# Patterns:
/\.'regexpr#"/ { print $0 }
NR == 1, NR == 5 { printf("%s\n", $0) }

# Statements:
print string, number