Debian Codegraph @

examples/demo_trim

raw
1 #!/usr/bin/env runawk
2
3 #use "trim.awk"
4
5 # This is a demo for trim.awk module
6
7 # Input files for this demo: examples/demo_trim.in
8
9 {
10 printf "trim_l(\"%s\")=\"%s\"\n", $0, trim_l($0)
11 printf "trim_r(\"%s\")=\"%s\"\n", $0, trim_r($0)
12 printf "trim_c(\"%s\")=\"%s\"\n", $0, trim_c($0)
13 printf "trim_lr(\"%s\")=\"%s\"\n", $0, trim_lr($0)
14 printf "trim_lrc(\"%s\")=\"%s\"\n", $0, trim_lrc($0)
15 }